Hi Shrawan, what you've posted isn't valid JSON.
This being said, you might have success parsing valid JSON input with some message processing pipeline rules using the select_jsonpath <http://docs.graylog.org/en/2.1/pages/pipelines/functions.html#select-jsonpath> and parse_json <http://docs.graylog.org/en/2.1/pages/pipelines/functions.html#parse-json> functions. Cheers, Jochen On Wednesday, 1 February 2017 10:21:50 UTC+1, Shrawan Bhagwat wrote: > > Hi Jochen, > > JSON array is in the follwoing form: > > { > allErrorLogs = ( > { > appName = DemoApp; > appVersion = 1; > availableMemory = 893627756544; > currentDate = "2017-01-20 06:40:06 PM"; > deviceId = "FABFA026-E75D-45BA-9A13-592D96BA6C98"; > deviceName = "x86_64"; > deviceOSVersion = "9.3"; > errorDescription = "Customerror 11111"; > errorInMethod = logCustomError; > packageName = "com.tcs.ultimatix.DemoApp"; > }, > { > appName = DemoApp; > appVersion = 1; > availableMemory = 893627752448; > currentDate = "2017-01-20 06:40:09 PM"; > deviceId = "FABFA026-E75D-45BA-9A13-592D96BA6C98"; > deviceName = "x86_64"; > deviceOSVersion = "9.3"; > exception = "*** -[__NSArray0 objectAtIndex:]: index 23 beyond bounds for > empty NSArray\n"; > packageName = "com.tcs.ultimatix.DemoApp"; > } > ); > } > > we are receiving this message in logstash log but not on Graylog UI. > > Please guide. > > regards, > Shrawan > > On Wednesday, 1 February 2017 13:55:33 UTC+5:30, Jochen Schalanda wrote: >> >> Hi Shrawan, >> >> please post some examples of the message payload sent by Logstash. >> >> Cheers, >> Jochen >> >> On Wednesday, 1 February 2017 08:51:09 UTC+1, Shrawan Bhagwat wrote: >>> >>> Hi All, >>> >>> We want to implement service request trace using http plugin of logstash >>> in JSON Array format. >>> >>> we are receiving JSON request in form of array in Logstash logs but the >>> same is not visible on Graylog UI. >>> >>> Need your suggestions. >>> >>> Regards, >>> Shrawan >>> >> -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/55a17f29-739f-43f9-bccf-f4a1d9125d48%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
