{"action":"closed","issue":{"url":"https://api.github.com/repos/sivasamyk/logtrail/issues/91","repository_url":"https://api.github.com/repos/sivasamyk/logtrail","labels_url":"https://api.github.com/repos/sivasamyk/logtrail/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/sivasamyk/logtrail/issues/91/comments","events_url":"https://api.github.com/repos/sivasamyk/logtrail/issues/91/events","html_url":"https://github.com/sivasamyk/logtrail/issues/91","id":222365989,"number":91,"title":"How to use nested_objects attribution","user":{"login":"lynch0227","id":1768479,"avatar_url":"https://avatars0.githubusercontent.com/u/1768479?v=3","gravatar_id":"","url":"https://api.github.com/users/lynch0227","html_url":"https://github.com/lynch0227","followers_url":"https://api.github.com/users/lynch0227/followers","following_url":"https://api.github.com/users/lynch0227/following{/other_user}","gists_url":"https://api.github.com/users/lynch0227/gists{/gist_id}","starred_url":"https://api.github.com/users/lynch0227/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lynch0227/subscriptions","organizations_url":"https://api.github.com/users/lynch0227/orgs","repos_url":"https://api.github.com/users/lynch0227/repos","events_url":"https://api.github.com/users/lynch0227/events{/privacy}","received_events_url":"https://api.github.com/users/lynch0227/received_events","type":"User","site_admin":false},"labels":[{"id":309905395,"url":"https://api.github.com/repos/sivasamyk/logtrail/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-04-18T10:09:24Z","updated_at":"2017-05-11T02:47:47Z","closed_at":"2017-05-11T02:47:47Z","body":"Hi Guys,\r\nI have a hostname fields in the nested objects, here is the data sample:\r\n{\r\n         \"localtime\" => 2013-08-16T19:26:36.471Z,\r\n             \"level\" => \"ERROR\",\r\n            \"logger\" => \"com.tst.Bar\",\r\n         \"throwable\" => \"java.lang.tst:error message\",\r\n            \"thread\" => \"main\",\r\n           \"message\" => \"Message flushed with immediate flush=true\",\r\n        \"@timestamp\" => 2017-04-18T09:54:35.393Z,\r\n          \"@version\" => \"1\",              \r\n        \"contextMap\" => {\r\n        \"APP_BUILD_VERSION\" => \"111-39\",\r\n                 \"HOSTNAME\" => \"127.0.0.1\"\r\n    }\r\n}\r\n\r\nwhen I configure nested_objects is true, then I got the below error message:\r\nError! Exception while fetching hosts : [parsing_exception] Expected [START_OBJECT] under [path], but got a [VALUE_STRING] in [nested], with { line=1 & col=36 }\r\n\r\nHere is the logtrail conf:\r\n{\r\n  \"index_patterns\" : [\r\n    {\r\n      \"es\": {\r\n        \"default_index\": \"logstash-*\",\r\n        \"allow_url_parameter\": false\r\n      },\r\n      \"tail_interval_in_seconds\": 10,\r\n      \"es_index_time_offset_in_seconds\": 0,\r\n      \"display_timezone\": \"local\",\r\n      \"display_timestamp_format\": \"YYYY-MM-DD HH:mm:ss\",\r\n      \"max_buckets\": 500,\r\n      \"nested_objects\" : true,\r\n      \"default_time_range_in_days\" : 3,\r\n      \"max_hosts\": 1000,\r\n      \"max_events_to_keep_in_viewer\": 5000,\r\n      \"fields\" : {\r\n        \"mapping\" : {\r\n            \"timestamp\" : \"@timestamp\",\r\n            \"display_timestamp\" : \"localtime\",\r\n            \"hostname\" : \"contextMap.HOSTNAME\",\r\n            \"program\": \"level\",\r\n            \"message\": \"throwable\"\r\n        },\r\n        \"message_format\": \"{{throwable}}\"\r\n      }\r\n    }\r\n  ]\r\n}\r\n\r\nHow can I fix this issue? \r\nThank you."}}
{"actor":{"display_login":"sivasamyk"}}