# Is filebeat parse the timestamp from the log line and use it as the timestamp of the event?

**URL:** <https://discuss.elastic.co/t/is-filebeat-parse-the-timestamp-from-the-log-line-and-use-it-as-the-timestamp-of-the-event/161813>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 21, 2018, 8:42am UTC](https://discuss.elastic.co/t/is-filebeat-parse-the-timestamp-from-the-log-line-and-use-it-as-the-timestamp-of-the-event/161813 "2018-12-21T08:42:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeep57498755](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pradeep57498755/32/39086_2.png) [@pradeep57498755](https://discuss.elastic.co/u/pradeep57498755)\
**Post date:** [December 21, 2018, 8:42am UTC](https://discuss.elastic.co/t/is-filebeat-parse-the-timestamp-from-the-log-line-and-use-it-as-the-timestamp-of-the-event/161813/1 "2018-12-21T08:42:07Z")

</div>

Hi,

Am using filebeat on graylog and i want to parse the timestamp from the log line and use it as the timestamp field using filebeat ,how can i grok the log timestamp without logstash

log sample Thu Dec 20 12:36:56 +0000 2018 @Check out our latest newsletter for #DevSecOps events, blogs, videos and much more. If you like what you see - hit [https://t.co/Hk7rp2vz74](https://t.co/Hk7rp2vz74)

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 25, 2018, 7:07am UTC](https://discuss.elastic.co/t/is-filebeat-parse-the-timestamp-from-the-log-line-and-use-it-as-the-timestamp-of-the-event/161813/2 "2018-12-25T07:07:32Z")

</div>

You can use an [Elasticsearch ingest node pipeline](https://www.elastic.co/guide/en/elasticsearch/reference/6.5/ingest.html) to parse this. [This can be used instead of Logstash for a wide variety of processing](https://www.elastic.co/blog/should-i-use-logstash-or-elasticsearch-ingest-nodes).

---

<div class="post-metadata">

**Author:** ![pradeep57498755](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pradeep57498755/32/39086_2.png) [@pradeep57498755](https://discuss.elastic.co/u/pradeep57498755)\
**Post date:** [December 26, 2018, 4:25am UTC](https://discuss.elastic.co/t/is-filebeat-parse-the-timestamp-from-the-log-line-and-use-it-as-the-timestamp-of-the-event/161813/3 "2018-12-26T04:25:48Z")

</div>

I am using graylog as filebeat output . can I use es ingest node pipeline on this case?

filebeat conf :-

================================ Outputs =====================================

-------------------------- Elasticsearch output ------------------------------  
.#output.elasticsearch:  
.# Array of hosts to connect to.  
.# hosts: ["localhost:9200"]

----------------------------- Logstash output --------------------------------  
output.logstash:

hosts: ["graylog:5044"]

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 26, 2018, 7:24am UTC](https://discuss.elastic.co/t/is-filebeat-parse-the-timestamp-from-the-log-line-and-use-it-as-the-timestamp-of-the-event/161813/4 "2018-12-26T07:24:53Z")

</div>

I do not know if Graylog allows you to specify pipeline, so you probably need to ask them. You could also do it through Logstash.

---

<div class="post-metadata">

**Author:** ![pradeep57498755](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pradeep57498755/32/39086_2.png) [@pradeep57498755](https://discuss.elastic.co/u/pradeep57498755)\
**Post date:** [December 26, 2018, 7:35am UTC](https://discuss.elastic.co/t/is-filebeat-parse-the-timestamp-from-the-log-line-and-use-it-as-the-timestamp-of-the-event/161813/5 "2018-12-26T07:35:10Z")

</div>

ok thanks for the support

---

<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 23, 2019, 7:35am UTC](https://discuss.elastic.co/t/is-filebeat-parse-the-timestamp-from-the-log-line-and-use-it-as-the-timestamp-of-the-event/161813/6 "2019-01-23T07:35:20Z")

</div>

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