Logstash File Output by syslog

This is useful when you need to create additional file logs for backup.

file 
{
    codec => line
    path => "/var/log/logstash/%{host}/%{+YYYY-MM-dd}.log"
}

If you want to adjust an item, you can specify the item name to specify the item.

    codec => line {
        format => "%{[time]} | %{[severity]} : /%{[thread]}/ %{[loggername]} (%{[sourcemethodname]}) - %{[message]}"
    }
Facebook Comments

Leave A Reply

Detection ADBlockPlease, Disable or add to white list on our site.