# Second fraction into timesamp \[Apache errorlog timestamp\]

**URL:** <https://discuss.elastic.co/t/second-fraction-into-timesamp-apache-errorlog-timestamp/43761>\
**Category:** Logstash\
**Created:** [March 8, 2016, 11:07am UTC](https://discuss.elastic.co/t/second-fraction-into-timesamp-apache-errorlog-timestamp/43761 "2016-03-08T11:07:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tikejhya](https://avatars.discourse-cdn.com/v4/letter/t/77aa72/32.png) [@tikejhya](https://discuss.elastic.co/u/tikejhya)\
**Post date:** [March 8, 2016, 11:07am UTC](https://discuss.elastic.co/t/second-fraction-into-timesamp-apache-errorlog-timestamp/43761/1 "2016-03-08T11:07:54Z")

</div>

Error:  
value=\>"Tue Mar 08 10:51:38.971058 2016" is malformed at ".971058 2016"", :config\_parsers=\>"EEE MMM dd HH:mm:ss yyyy"

I am trying to pass Aapache error log into logstash with timestamp being log time rather than parsing time.

something like:  
date {  
match =\> ["timestamp", "EEE MMM dd HH:mm:ss yyyy", "EEE MMM dd HH:mm:ss.SSS yyyy", "EEE MMM dd HH:mm:ss.SS yyyy"]  
target =\> "@timestamp"  
}

Can anyone guide me what is the value that can be used for those fractions after second in example above "38.971058"?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 8, 2016, 11:41am UTC](https://discuss.elastic.co/t/second-fraction-into-timesamp-apache-errorlog-timestamp/43761/2 "2016-03-08T11:41:43Z")

</div>

Since you have microseconds use SSSSSS instead of SSS. Note that ES won't store microsecond resolution.

---

<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:** [July 6, 2017, 5:08am UTC](https://discuss.elastic.co/t/second-fraction-into-timesamp-apache-errorlog-timestamp/43761/3 "2017-07-06T05:08:01Z")

</div>


