# Field logTime is 2019-Mar-28 02:39:24.778, 2019-Mar-28 02:39:24.778, why?

**URL:** <https://discuss.elastic.co/t/field-logtime-is-2019-mar-28-0224-778-2019-mar-28-0224-778-why/174218>\
**Category:** Logstash\
**Created:** [March 28, 2019, 2:53am UTC](https://discuss.elastic.co/t/field-logtime-is-2019-mar-28-0224-778-2019-mar-28-0224-778-why/174218 "2019-03-28T02:53:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin\_bolton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kevin_bolton/32/27585_2.png) [@kevin\_bolton](https://discuss.elastic.co/u/kevin_bolton)\
**Post date:** [March 28, 2019, 2:53am UTC](https://discuss.elastic.co/t/field-logtime-is-2019-mar-28-0224-778-2019-mar-28-0224-778-why/174218/1 "2019-03-28T02:53:17Z")

</div>

I have multiple Logstash config(forti.conf, cisco.conf) in logstash conf directory

Both configs have logTime field  
add\_field =\> { "logTime" =\> "%{year}-%{month}-%{day} %{time}" }

In Kibans \> query \> index of cisco log \>  
logTime field is 2019-Mar-28 02:39:24.778, 2019-Mar-28 02:39:24.778

Why?

part of log  
Mar 28 2019 11:00:08.818 UTC or  
\*Mar 28 2019 11:00:08.818 UTC

part of conf  
grok {  
match =\> [  
"message", "\<%{NONNEGINT:syslog5424pri}\>(%{NUMBER:log\_sequence})?: %{GREEDYDATA:devhostname}: %{MONTH:month} %{MONTHDAY:day} %{YEAR:year} %{TIME:time} %{TZ:timezone}: %%{CISCO\_REASON:facility}-%{INT:severity\_level}-%{CISCO\_REASON:facility\_mnemonic}: %{GREEDYDATA:description}",  
"message", "\<%{NONNEGINT:syslog5424pri}\>(%{NUMBER:log\_sequence})?: %{GREEDYDATA:devhostname}: \*%{MONTH:month} %{MONTHDAY:day} %{YEAR:year} %{TIME:time} %{TZ:timezone}: %%{CISCO\_REASON:facility}-%{INT:severity\_level}-%{CISCO\_REASON:facility\_mnemonic}: %{GREEDYDATA:description}"  
]  
add\_field =\> { "logTime" =\> "%{year}-%{month}-%{day} %{time}" }  
}  
date {  
match =\> [  
"logTime",  
"yyyy-MMM-dd HH:mm:ss.SSS",  
"yyyy-MMM-d HH:mm:ss.SSS"  
]  
timezone =\> "%{timezone}"  
}

---

<div class="post-metadata">

**Author:** ![nurhambali](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@nurhambali](https://discuss.elastic.co/u/nurhambali)\
**Post date:** [March 28, 2019, 3:02am UTC](https://discuss.elastic.co/t/field-logtime-is-2019-mar-28-0224-778-2019-mar-28-0224-778-why/174218/2 "2019-03-28T03:02:07Z")

</div>

what about this way

> %{CISCOTIMESTAMPTZ:log\_date}

---

<div class="post-metadata">

**Author:** ![kevin\_bolton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kevin_bolton/32/27585_2.png) [@kevin\_bolton](https://discuss.elastic.co/u/kevin_bolton)\
**Post date:** [March 28, 2019, 8:02am UTC](https://discuss.elastic.co/t/field-logtime-is-2019-mar-28-0224-778-2019-mar-28-0224-778-why/174218/4 "2019-03-28T08:02:55Z")

</div>

I am using pipeline to separate two conf,  
Now the problem was solved.

---

<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:** [April 25, 2019, 8:02am UTC](https://discuss.elastic.co/t/field-logtime-is-2019-mar-28-0224-778-2019-mar-28-0224-778-why/174218/5 "2019-04-25T08:02:58Z")

</div>

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