beats icon indicating copy to clipboard operation
beats copied to clipboard

filebeat Apache module config changes to add response time.

Open ap924g opened this issue 8 years ago • 10 comments

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 +

ap924g avatar Feb 28 '18 01:02 ap924g

I have updated the grok statements in the ingest pipeline and getting the results as expected. Closing this issue.

ap924g avatar Mar 02 '18 16:03 ap924g

@ap924g Would you mind opening a PR with your changes so it's also available to others?

ruflin avatar Mar 04 '18 04:03 ruflin

@ap924g can you tell you how did you fix the problem ?

ibouchakour avatar Oct 31 '18 10:10 ibouchakour

@ap924g I am trying to solve the same problem, would you be able to paste here a code snippet that works for you?

KarelJakubec avatar Nov 29 '18 10:11 KarelJakubec

@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 avatar Jan 30 '19 17:01 ap924g

@ap924g Not sure we got this in TBH. Any chance you could open a PR?

ruflin avatar Jan 31 '19 13:01 ruflin

Has a PR already been created ?

jvkassi avatar Dec 08 '20 12:12 jvkassi

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,

ibouchakour avatar Dec 09 '20 13:12 ibouchakour

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

jvkassi avatar Dec 09 '20 21:12 jvkassi

I haven't worked on the apache part in a while. @exekias might be able to help here?

ruflin avatar Dec 10 '20 14:12 ruflin