# Writing grok filter which ignores some field and captures time and date

**URL:** https://discuss.elastic.co/t/writing-grok-filter-which-ignores-some-field-and-captures-time-and-date/204028
**Category:** Logstash
**Created:** [October 17, 2019, 10:46am UTC](https://discuss.elastic.co/t/writing-grok-filter-which-ignores-some-field-and-captures-time-and-date/204028 "2019-10-17T10:46:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Aayush\_Agrawal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aayush_agrawal/32/56095_2.png) [@Aayush\_Agrawal](https://discuss.elastic.co/u/Aayush_Agrawal)
#### Post date: [October 17, 2019, 10:46am UTC](https://discuss.elastic.co/t/writing-grok-filter-which-ignores-some-field-and-captures-time-and-date/204028/1 "2019-10-17T10:46:01Z")

</div>

I am trying to capture start time and end time for this log, but every time i am having different errors.  
Kindly help.  
**Offline batch Start Time -\>Oct 8, 2019 11:47:33 PM, End time -\>Oct 8, 2019 11:49:43 PM**

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [October 17, 2019, 3:12pm UTC](https://discuss.elastic.co/t/writing-grok-filter-which-ignores-some-field-and-captures-time-and-date/204028/2 "2019-10-17T15:12:37Z")

</div>

What have you tried and what issues did you have?

---

<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: [November 14, 2019, 3:12pm UTC](https://discuss.elastic.co/t/writing-grok-filter-which-ignores-some-field-and-captures-time-and-date/204028/3 "2019-11-14T15:12:43Z")

</div>

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