Hi Jochen,
When we are trying with
{
"allErrorLogs": [
{
"appName": "DemoApp",
"appVersion": "1.1",
"deviceId": "1234567",
"deviceName": "moto e",
"deviceOSVersion": "5.1",
"packageName": "com.abc.DemoApp",
"errorLog": "null pointer exception"
},
{
"appName": "DemoApp",
"appVersion": "1.1",
"deviceId": "1234567",
"deviceName": "moto e",
"deviceOSVersion": "5.1",
"packageName": "com.abc.DemoApp",
"errorLog": "illegal state exception"
},
{
"appName": "DemoApp",
"appVersion": "1.1",
"deviceId": "1234567",
"deviceName": "moto e",
"deviceOSVersion": "5.1",
"packageName": "com.abc.DemoApp",
"errorLog": "index out of bound exception"
},
{
"appName": "DemoApp",
"appVersion": "1.1",
"deviceId": "1234567",
"deviceName": "moto e",
"deviceOSVersion": "5.1",
"packageName": "com.abc.DemoApp",
"errorLog": "class not found exception"
}
]
}
This JSON array, it's still not giving output on Graylog UI.
Please guide.
Regards,
Shrawan.
On Wednesday, 1 February 2017 15:20:53 UTC+5:30, Jochen Schalanda wrote:
>
> 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/61daa31a-9e30-41e0-a918-f3aecf3e27f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.