filebeat Apache module config changes to add response time.
Hi , We are planning to use apache file beat module to export IBM Http server access logs . We are able to view the data in kibana dashboard but the response time value is not showing. Below is a sample of our access log.
20.20.X.X - - [23/Feb/2018:12:48:48 -0500] "GET /v1files/?v=9052&op=tile&info=true&pages=1, HTTP/1.1" 200 459 11570 +
I have updated the grok statements in the ingest pipeline and getting the results as expected. Closing this issue.
@ap924g Would you mind opening a PR with your changes so it's also available to others?
@ap924g can you tell you how did you fix the problem ?
@ap924g I am trying to solve the same problem, would you be able to paste here a code snippet that works for you?
@KarelJakubec @ibouchakour @ruflin You guys would have figured it by now .In case of a No, please use the below as reference . I updated the pipeline with the below content and it worked for me . I just added another variable as "%{DATA:apache2.access.dummy}" at the end of the pattern to get this working . This variable will come as blank when you view in kibana but you will get the other fields as expected . ingest_pipeline.txt
@ap924g Not sure we got this in TBH. Any chance you could open a PR?
Has a PR already been created ?
Hi, it been a while but if i remember, i added in filebeat.template.json "response_time": { "type": "long" },
under the response_code in the apache section,
hmm i'm talking about a PR to add a new field "response_time" here filebeat/module/apache/access/ingest/pipeline.yml. Is it the right way to do it ? @ruflin
I haven't worked on the apache part in a while. @exekias might be able to help here?