i have this code use in conf file of logstash
input {
beats{
port => 5044
}
}
filter {
grok{
match => { "message" => "%{INT:Event_Date} %{MONTH:Event_Month} %{YEAR:Event_Year} | %{TIME:SFS_Event_Time},%{INT:LOG_NUMB} | %{LOGLEVEL:log-level} | %{DATA:Pool_Thread} | %{DATA:Extension} | | {lib}: { Zone: %{DATA:Zone} } ELK_SYNC_LOG Count: %{INT:Count} UserCount: %{INT:User-Count}" }
}
mutate{
convert => { "User-Count" => "integer" }
}
}
output {
elasticsearch {
hosts => ["http://localhost:1311"]
index => "logstash-%{+yyyy.MM.dd}"
My kibana shows only one index logstash* the index is not been created on daily basis due to this my data for logs stored in single file need only last 45 days data i want to delete rest