Hello everyone,
we have data as following:
{
"_index": "logstash-2017.04.12",
"_type": "fluentd",
"_id": "AVtiVXDVEWKEV5H6MuHL",
"_score": null,
"_source": {
"eais_prod": "1 2017-04-12T13:23:30.275Z ip-4-0-6-78 - messageId-socket-a - Logs = ,,2017-04-12,13:23:29.922,0-37fcf132-1f83-11e7-9fb6-064267958b48,something.host.io,operation,200,OK,'9B24D5, 'DS',,INTERNET,,,,,,PROD"
"@timestamp": "2017-04-12T09:23:30-04:00"
},
"fields": {
"@timestamp": [
1492003410000
]
},
"highlight": {
"eais_prod": [
"1 2017-04-12T13:23:30.275Z ip-4-0-6-78 - messageId-socket-a - Logs = ,,2017-04-12,13:23:29.922,0-37fcf132-1f83-11e7-9fb6-064267958b48,something.host.io,operation,200,OK,'9B24D5, 'DS',,INTERNET,,,,,,PROD"
]
},
"sort": [
1492003410000
]
}
we need to split this line
,,2017-04-12,13:23:29.922,0-37fcf132-1f83-11e7-9fb6-064267958b48,something.host.io,operation,200,OK,'9B24D5, 'DS',,INTERNET,124,,,,,PROD"
and do sum or aggregate function on 124 index in the above CSV
we will have multiple data in that format and we want to get lines that have INTERNET and then next field and do a sum on that.
Regards
Aditya