# Timestamp parsing in CCM logs

**URL:** <https://discuss.elastic.co/t/timestamp-parsing-in-ccm-logs/154355>\
**Category:** Logstash\
**Created:** [October 28, 2018, 8:00pm UTC](https://discuss.elastic.co/t/timestamp-parsing-in-ccm-logs/154355 "2018-10-28T20:00:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maekee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maekee/32/21708_2.png) [@Maekee](https://discuss.elastic.co/u/Maekee)\
**Post date:** [October 28, 2018, 8:00pm UTC](https://discuss.elastic.co/t/timestamp-parsing-in-ccm-logs/154355/1 "2018-10-28T20:00:31Z")

</div>

Hello,  
Trying to parse the date in logstash on logs from ccm logs (System Center Configuration Manager).  
Example row:

> \<![LOG[Successfully raised pending event]LOG]!\>\<time="20:01:33.961-60" date="10-28-2018" component="CCMEXEC" context="" type="1" thread="6300" file="eventprovider.cpp:384"\>

Two questions:

1. Is there a way to build the timestamp from the time and date format without getting all the separate date and time values in the 6+ fields and then matching them together?
2. I want to include the milliseconds-part. How do i do this?

Will Elasticsearch approve if i send a timestamp that looks like this:  
2018-10-28 20:01:33.961 (dont know what the last -60 is!? Nano-seconds? Ticks?)

---

<div class="post-metadata">

**Author:** ![Maekee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maekee/32/21708_2.png) [@Maekee](https://discuss.elastic.co/u/Maekee)\
**Post date:** [November 18, 2018, 7:33am UTC](https://discuss.elastic.co/t/timestamp-parsing-in-ccm-logs/154355/2 "2018-11-18T07:33:47Z")

</div>

Just found out that the time is formatted in Three ways:  
yyyy-MM-dd HH:mm:ss.SSS-60  
yyyy-MM-dd HH:mm:ss.SSS-120  
yyyy-MM-dd HH:mm:ss.SSSSSSS

So guess i have to get the first Three of SSS and throw away the other. Dont know what the -60 and -120 is.

Any ideas out there in the Community?

---

<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:** [December 16, 2018, 7:34am UTC](https://discuss.elastic.co/t/timestamp-parsing-in-ccm-logs/154355/3 "2018-12-16T07:34:03Z")

</div>

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