Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filter {
- if [type] == "minetest_client_stats" {
- grok {
- patterns_dir => "/usr/local/etc/logstash/patterns"
- match => { "message" => "%{MINETESTCLIENTLOG}" }
- }
- if "" in [client_version] {
- }
- else {
- mutate {
- add_field => { "client_version" => "Very old minetest version" }
- }
- }
- date {
- match => [ "timestamp", "dd/MMM/YYYY:HH:mm:ss Z" ]
- }
- mutate {
- remove_field => [timestamp]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement