# Add request processing time

**URL:** <https://discuss.elastic.co/t/add-request-processing-time/212467>\
**Category:** Logstash\
**Created:** [December 19, 2019, 10:35am UTC](https://discuss.elastic.co/t/add-request-processing-time/212467 "2019-12-19T10:35:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saliou](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@saliou](https://discuss.elastic.co/u/saliou)\
**Post date:** [December 19, 2019, 10:35am UTC](https://discuss.elastic.co/t/add-request-processing-time/212467/1 "2019-12-19T10:35:37Z")

</div>

Hello everyone

I am a beginner in logstash filter and to better understand the patterns I wanted to put a pattern to add the processing time of requests (in millisencodes) in my logs.

The problem is that I can't find any pattern that looks roughly what I want  
Do you have any suggestions for a start

Attached is the logstash conf that I currently have

Thank you

#logstash filter

filter {  
if [type] == "apachecvs"{  
grok { match =\> { "message" =\> "%{IPORHOST:clientip} %{USER:ident} %{USER:auth} [%{HTTPDATE:logdate}] "(?:%{WORD:verb} %{NOTSPACE:request}(?: HTTP/%{NUMBER:httpversion})?|%{DATA:rawrequest})" %{NUMBER:response} (?:%{NUMBER:bytes}|-)" }  
}  
date {  
match =\> ["logdate", "dd/MMM/YYYY:HH:mm:ss Z"]  
timezone =\> "Europe/Paris"  
target =\> "logdate"  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 16, 2020, 10:35am UTC](https://discuss.elastic.co/t/add-request-processing-time/212467/2 "2020-01-16T10:35:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
