Filter matches the second event and should be joining it to the first. Regexp seems to be ok, when I test it.
Code: Select all
if [type] == "mytype" {
multiline {
pattern => "(\W|^)Received\san\sunknown\sevent\stype(\W|$)"
negate => true
what => previous
}
}Code: Select all
{
"_index": "logstash-2015.10.01",
"_type": "mytype",
"_id": "txKLBkFGS6GPGfg_dhfVtw",
"_score": null,
"_source": {
"message": "Unknown event from some thing",
"@version": "1",
"@timestamp": "2015-10-01T16:08:57.032Z",
"type": "mytype",
"host": "10.0.1.141:54633",
"path": "com.mycompany.east.driver.dvr.mydvrtype.comm.DvrEventHandler",
"priority": "ERROR",
"logger_name": "com.mycompany.east.driver.dvr.mydvrtype.comm.DvrEventHandler",
"thread": "Incoming Data Listener",
"class": "com.mycompany.east.driver.dvr.mydvrtype.comm.DvrEventHandler",
"file": "DvrEventHandler.java:157",
"method": "processFT2Event",
"bundle.id": "84",
"bundle.version": "2.1.3",
"bundle.name": "com.mycompany.east.driver.dvr.mydvrtype"
},
"sort": [
1443715737032
]
}Code: Select all
{
"_index": "logstash-2015.10.01",
"_type": "mytype",
"_id": "3zUNQeTQRUyP_NLIACzFbQ",
"_score": null,
"_source": {
"message": "Received an unknown event type - SMART HDD ALERT TEMP. Raw event = S4007601-10-15 12:08:09 R Z000 0102 SYST 001 SYSTEM |SMART HDD ALERT TEMP|?| 0|0000000000000000",
"@version": "1",
"@timestamp": "2015-10-01T16:08:57.006Z",
"type": "mytype",
"host": "10.0.1.141:54633",
"path": "com.mycompany.east.driver.dvr.mydvrtype.ft2.events.FT2DvrEvent",
"priority": "ERROR",
"logger_name": "com.mycompany.east.driver.dvr.mydvrtype.ft2.events.FT2DvrEvent",
"thread": "Incoming Data Listener",
"class": "com.mycompany.east.driver.dvr.mydvrtype.ft2.events.FT2DvrEvent",
"file": "FT2DvrEvent.java:152",
"method": "parseAlarmDescription",
"bundle.id": "84",
"bundle.version": "2.1.3",
"bundle.name": "com.mycompany.east.driver.dvr.mydvrtype"
},
"sort": [
1443715737006
]
}***edited out a name that is not important.