Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. filter {
  2. if [type] == "minetest_client_stats" {
  3. grok {
  4. patterns_dir => "/usr/local/etc/logstash/patterns"
  5. match => { "message" => "%{MINETESTCLIENTLOG}" }
  6. }
  7.  
  8. if "" in [client_version] {
  9. }
  10. else {
  11. mutate {
  12. add_field => { "client_version" => "Very old minetest version" }
  13. }
  14. }
  15.  
  16. date {
  17. match => [ "timestamp", "dd/MMM/YYYY:HH:mm:ss Z" ]
  18. }
  19. mutate {
  20. remove_field => [timestamp]
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement