zz10
zz10

Reputation: 71

Set Logstash output index in 24/h time format

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

Answers (1)

jaspreet chahal
jaspreet chahal

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

Related Questions