# Parsing timestamp from log

**URL:** https://discuss.elastic.co/t/parsing-timestamp-from-log/218804
**Category:** Beats
**Tags:** filebeat
**Created:** [February 11, 2020, 3:41pm UTC](https://discuss.elastic.co/t/parsing-timestamp-from-log/218804 "2020-02-11T15:41:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![carrot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carrot/32/44335_2.png) [@carrot](https://discuss.elastic.co/u/carrot)
#### Post date: [February 11, 2020, 3:41pm UTC](https://discuss.elastic.co/t/parsing-timestamp-from-log/218804/1 "2020-02-11T15:41:05Z")

</div>

I'm trying to parse timestamp from our Traffic Server diags log with filebeat.

[Feb 11 15:31:05.152] Server {0x2ae10580cd40} NOTE: ssl\_multicert.config done reloading!  
[Feb 11 15:31:05.340] Server {0x2ae10580cd40} NOTE: traffic server running

I'm using this dissect filter to extract the timestamp (that works just fine):

```auto
     processors:
        - dissect:
            tokenizer: '[%{logtime}]'
            target_prefix: ''

```

Then, I'm trying to use the timestamp processor although after a few tries, kept on failing and I'm not exactly sure how to fix it.

```auto
        - timestamp:
            field: logtime
            layouts:
            - 'Feb 11 07:04:26.515'
            - StampMilli
            test:
            - 'Feb 11 07:04:26.515'

```

The results is like this:

```auto
Feb 11 15:38:59 cdn1cdmid0001 filebeat: 2020-02-11T15:38:59.021Z#011INFO#011instance/beat.go:435#011filebeat stopped.
Feb 11 15:38:59 cdn1cdmid0001 filebeat: 2020-02-11T15:38:59.021Z#011ERROR#011instance/beat.go:916#011Exiting: Error while initializing input: failed to parse test timestamp: failed parsing time field logtime='Feb 11 07:04:26.515'
Feb 11 15:38:59 cdn1cdmid0001 filebeat: Exiting: Error while initializing input: failed to parse test timestamp: failed parsing time field logtime='Feb 11 07:04:26.515'

```

---

<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 10, 2020, 3:41pm UTC](https://discuss.elastic.co/t/parsing-timestamp-from-log/218804/2 "2020-03-10T15:41:16Z")

</div>

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