Hello,
I have the following field extraction in Splunk
(?i)- site:(?P<site_id>[^;:]+)
How can I achieve a similar result with logstash?
Sample log message:
INFO 2016-07-21 13:17:48,139 [http-bio-8080-exec-5] com.vendor.recserver.controller.RestController - site:company; abtest:none; pagetemplate:PT_RelatedRec: Total Time = 1ms. widget:RecentlyViewedProduct time:0ms scanned:0 timebox:none fallback:0 of 5 widget:RelatedRec time:0ms scanned:4 timebox:none fallback:0 of 4 context-url:http://www.company.com/eu/p/347340
Other similar splunk field extractions that I would like to replicate for the above message
(?i)context-(url|id):(?P<rtx_context>[^$]+)
(?i)Total Time = (?P<rsp_time>\d+)
Again, is it possible to achieve a similar result using logstash and elastic search?
Thank you again in advance.
Haven't gotten very far with my logstash configuration
filter {
date {
match => ["logtime", "ISO8601" ]
}
grok {
match => { "message" => "%{LOGLEVEL:severity} %{TIMESTAMP_ISO8601:logtime} %{NOTSPACE:javathread} %{JAVACLASS:class} %{GREEDYDATA:therest}"
}
}
}
Ciao, Dario