Hello magnusbaeck
Following our logstash setting,we will get three event data in kibana.
The event data json is:
event1:
{
"_index": "wineventlog-2017-11-24",
"_type": "wineventlog",
"_id": "XXXXXXXXXXXXX",
"_version": 1,
"_score": null,
"_source": {
"computer_name": "XXXXXX",
"keywords": [
"XX"
],
"log_name": "Application",
"level": "info",
"record_number": "38868",
"event_data": {
"param1": "XXXXXXX",
"Binary": "000000000000000100000002"
},
"message": "XXXXXXX",
"type": "wineventlog",
"opcode": "info",
"tags": [
"beats_input_codec_plain_applied",
"_grokparsefailure"
],
"@timestamp": "2017-11-24T08:13:50.000Z",
"event_id": 1,
"Binary1": "00000000",
"@version": "1",
"beat": {
"name": "XXXXXX",
"hostname": "XXXXXX",
"version": "5.6.3"
},
"host": "XXXXXXX",
"source_name": "XXXXXXX"
},
"fields": {
"@timestamp": [
1511511230000
]
},
"highlight": {
"message": [
"(XXXXXXXXXXXXXXXXXXXXXXXX)"
]
},
"sort": [
1511511230000
]
}
event2:
{
"_index": "wineventlog-2017-11-24",
"_type": "wineventlog",
"_id": "XXXXXXXXXXXXX",
"_version": 1,
"_score": null,
"_source": {
"computer_name": "XXXXXX",
"keywords": [
"XX"
],
"log_name": "Application",
"level": "info",
"record_number": "38868",
"event_data": {
"param1": "XXXXXXX",
"Binary": "000000000000000100000002"
},
"message": "XXXXXXX",
"type": "wineventlog",
"opcode": "info",
"tags": [
"beats_input_codec_plain_applied",
"_grokparsefailure"
],
"@timestamp": "2017-11-24T08:13:50.000Z",
"event_id": 1,
"Binary1": "00000001",
"@version": "1",
"beat": {
"name": "XXXXXX",
"hostname": "XXXXXX",
"version": "5.6.3"
},
"host": "XXXXXXX",
"source_name": "XXXXXXX"
},
"fields": {
"@timestamp": [
1511511230000
]
},
"highlight": {
"message": [
"(XXXXXXXXXXXXXXXXXXXXXXXX)"
]
},
"sort": [
1511511230000
]
}
event3:
{
"_index": "wineventlog-2017-11-24",
"_type": "wineventlog",
"_id": "XXXXXXXXXXXXX",
"_version": 1,
"_score": null,
"_source": {
"computer_name": "XXXXXX",
"keywords": [
"XX"
],
"log_name": "Application",
"level": "info",
"record_number": "38868",
"event_data": {
"param1": "XXXXXXX",
"Binary": "000000000000000100000002"
},
"message": "XXXXXXX",
"type": "wineventlog",
"opcode": "info",
"tags": [
"beats_input_codec_plain_applied",
"_grokparsefailure"
],
"@timestamp": "2017-11-24T08:13:50.000Z",
"event_id": 1,
"Binary1": "00000002",
"@version": "1",
"beat": {
"name": "XXXXXX",
"hostname": "XXXXXX",
"version": "5.6.3"
},
"host": "XXXXXXX",
"source_name": "XXXXXXX"
},
"fields": {
"@timestamp": [
1511511230000
]
},
"highlight": {
"message": [
"(XXXXXXXXXXXXXXXXXXXXXXXX)"
]
},
"sort": [
1511511230000
]
}
Now we want to add a filed in each event:
event1:
{
"_index": "wineventlog-2017-11-24",
"_type": "wineventlog",
"_id": "XXXXXXXXXXXXX",
"_version": 1,
"_score": null,
"_source": {
"computer_name": "XXXXXX",
"keywords": [
"XX"
],
"log_name": "Application",
"level": "info",
"record_number": "38868",
"event_data": {
"param1": "XXXXXXX",
"Binary": "000000000000000100000002"
},
"message": "XXXXXXX",
"type": "wineventlog",
"opcode": "info",
"tags": [
"beats_input_codec_plain_applied",
"_grokparsefailure"
],
"@timestamp": "2017-11-24T08:13:50.000Z",
"event_id": 1,
"Binary1": "00000000",
"location": "1",
"@version": "1",
"beat": {
"name": "XXXXXX",
"hostname": "XXXXXX",
"version": "5.6.3"
},
"host": "XXXXXXX",
"source_name": "XXXXXXX"
},
"fields": {
"@timestamp": [
1511511230000
]
},
"highlight": {
"message": [
"(XXXXXXXXXXXXXXXXXXXXXXXX)"
]
},
"sort": [
1511511230000
]
}
event2:
{
"_index": "wineventlog-2017-11-24",
"_type": "wineventlog",
"_id": "XXXXXXXXXXXXX",
"_version": 1,
"_score": null,
"_source": {
"computer_name": "XXXXXX",
"keywords": [
"XX"
],
"log_name": "Application",
"level": "info",
"record_number": "38868",
"event_data": {
"param1": "XXXXXXX",
"Binary": "000000000000000100000002"
},
"message": "XXXXXXX",
"type": "wineventlog",
"opcode": "info",
"tags": [
"beats_input_codec_plain_applied",
"_grokparsefailure"
],
"@timestamp": "2017-11-24T08:13:50.000Z",
"event_id": 1,
"Binary1": "00000001",
"location": "2",
"@version": "1",
"beat": {
"name": "XXXXXX",
"hostname": "XXXXXX",
"version": "5.6.3"
},
"host": "XXXXXXX",
"source_name": "XXXXXXX"
},
"fields": {
"@timestamp": [
1511511230000
]
},
"highlight": {
"message": [
"(XXXXXXXXXXXXXXXXXXXXXXXX)"
]
},
"sort": [
1511511230000
]
}
event3:
{
"_index": "wineventlog-2017-11-24",
"_type": "wineventlog",
"_id": "XXXXXXXXXXXXX",
"_version": 1,
"_score": null,
"_source": {
"computer_name": "XXXXXX",
"keywords": [
"XX"
],
"log_name": "Application",
"level": "info",
"record_number": "38868",
"event_data": {
"param1": "XXXXXXX",
"Binary": "000000000000000100000002"
},
"message": "XXXXXXX",
"type": "wineventlog",
"opcode": "info",
"tags": [
"beats_input_codec_plain_applied",
"_grokparsefailure"
],
"@timestamp": "2017-11-24T08:13:50.000Z",
"event_id": 1,
"Binary1": "00000002",
"location": "3",
"@version": "1",
"beat": {
"name": "XXXXXX",
"hostname": "XXXXXX",
"version": "5.6.3"
},
"host": "XXXXXXX",
"source_name": "XXXXXXX"
},
"fields": {
"@timestamp": [
1511511230000
]
},
"highlight": {
"message": [
"(XXXXXXXXXXXXXXXXXXXXXXXX)"
]
},
"sort": [
1511511230000
]
}
Is it possible?