How to add new timestamp field on logstash?
<p>I'm parsing a log that have previously loaded in my localhost and I would like to get the event date field in each row as a timestamp, but kibana only can gets it as a string.</p>

<p><strong>Example:</strong>
I have this event</p>

<pre><code>2016/09/27 13:33:49.701 GMT(09/27 15:33:49 +0200) INFO       BILLINGGW  ConvergysDelegate.getCustomer(): Calling getCustomerFromCache: 0001:606523
</code></pre>

<p>It was loaded on <strong>September 27th 2016, 16:04:53.222</strong>, but the logdate field (the event date) is: <strong>2016/09/27 13:33:49.701</strong>.</p>

<p>On logstash filter I defined:</p>

<pre><code>(?&lt;logdate&gt;%{NUMBER:year}/%{NUMBER:month}/%{NUMBER:day} %{HOUR:hday}:%{MINUTE:min}:%{SECOND:sec}) %{GREEDYDATA:result}
</code></pre>

<p>I also proved with:</p>

<pre><code>(?&lt;logdate&gt;%{YEAR:year}/%{MONTHNUM:month}/%{MONTHDAY:day} %{HOUR:hday}:%{MINUTE:min}:%{SECOND:sec}) %{GREEDYDATA:result}
</code></pre>

<p>And kibana reads logdate like string. How can I get that kibana could read it as timestamp?</p>

<p>I proved only with the date:</p>

<pre><code>(?&lt;logdate&gt;%{NUMBER:year}/%{NUMBER:month}/%{NUMBER:day})
</code></pre>

<p>and Kibana interpreted it properly like timestamp, but the problem is how to add  correctly the hours, minutes and seconds to the logdate field.</p>

<p>Could anyone help me?</p>

<p>Best regards.</p>