# How to switch between different log

**URL:** <https://discuss.elastic.co/t/how-to-switch-between-different-log/122321>\
**Category:** Logstash\
**Created:** [March 2, 2018, 9:15pm UTC](https://discuss.elastic.co/t/how-to-switch-between-different-log/122321 "2018-03-02T21:15:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Criviere](https://avatars.discourse-cdn.com/v4/letter/c/3ab097/32.png) [@Criviere](https://discuss.elastic.co/u/Criviere)\
**Post date:** [March 2, 2018, 9:15pm UTC](https://discuss.elastic.co/t/how-to-switch-between-different-log/122321/1 "2018-03-02T21:15:48Z")

</div>

Hello,

I'm wondering how I can go about switching between different logs in logstash? For example, I have one log with a time stamp format of "[2/14/18 13:17:40:147 EST]" and another log with a timestamp format of "04:02:09.538 EST". How could I setup my logstash config to switch between these timestamp formats?

---

<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:** [March 2, 2018, 10:08pm UTC](https://discuss.elastic.co/t/how-to-switch-between-different-log/122321/2 "2018-03-02T22:08:21Z")

</div>

A date filter can match against an array of formats. The documentation gives an example of matching against 3 formats.

```auto
match => [ "logdate", "MMM dd yyyy HH:mm:ss",
          "MMM d yyyy HH:mm:ss", "ISO8601" ]

```

If I remember correctly EST is ambiguous, so a date filter has no way to interpret it.

---

<div class="post-metadata">

**Author:** ![Criviere](https://avatars.discourse-cdn.com/v4/letter/c/3ab097/32.png) [@Criviere](https://discuss.elastic.co/u/Criviere)\
**Post date:** [March 2, 2018, 10:54pm UTC](https://discuss.elastic.co/t/how-to-switch-between-different-log/122321/3 "2018-03-02T22:54:07Z")

</div>

This is great, thank you.

---

<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:** [March 30, 2018, 10:54pm UTC](https://discuss.elastic.co/t/how-to-switch-between-different-log/122321/4 "2018-03-30T22:54:10Z")

</div>

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