sivasamyk / logtrail

Kibana plugin to view, search & live tail log events
MIT License
1.4k stars 186 forks source link

Return [object Object] if field is array #394

Closed nd-brown closed 1 year ago

nd-brown commented 4 years ago

Hello.

When I try to add field with type array, I see list of [object Object],[object Object] ...

For example. I have stacktrace which in elasticsearch looks like

....
"exception": {
    "frames": [
        {
            "method": "invokeInOurTx",
            "line": 22,
            "class": "org.jboss.as.ejb3"
        },
        {
            "method": "invokeInOurTx",
            "line": 22,
            "class": "org.jboss.as.ejb3"
        },
        {
            "method": "invokeInOurTx",
            "line": 22,
            "class": "org.jboss.as.ejb3"
        },
       ...
    ]
},
...

and in logtrail.json I set "message_format": {{exception.frames}}. The result will be next: [object Object],[object Object],[object Object] image

I understand that this is the expected result. [{a: "a"},{b: "b"}].toString() => [object Object],[object Object]. But it would be great if there was an opportunity to map values and return as raw str.