Get only the date from timestamp

(Sunil) #1


I have a timestamp in my input. so i convert it as follows

date {
match => ["timestamp", "UNIX_MS"]
target => "mydate"

And the mydate is 2017-08-22T11:26:22.156Z

I would like to extract only the 2017-08-22 from the the above.
I have tried but did not get a best solution.

Help appreciated

(system) #2

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