Reputation: 71
How to set the Logstash output for index creation in 24 hours format?
%{+YYYY.MM.dd.hh}
this will create every hour an index, but not in 24 hours format. any advise?
Upvotes: 1
Views: 631
Reputation: 9099
Try using capital HH
, i.e. YYYY.MM.dd.HH
.
Small hh
will generate data in range 1-12 with am/pm, while HH
will be in 24 hour range.
Upvotes: 1