Advertisement
dcLynyrd

Logstash_utf-8-error_input_filter

Feb 7th, 2014
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. input {
  2. file {
  3. path => "/data/apps/smart-pixel-grails/logs/smartpixelserver.calls"
  4. start_position => "beginning"
  5. type => "smrtpxl-grails-calls"
  6. add_field => [ "platform", "BIT" ]
  7. add_field => [ "application", "SmartPixel" ]
  8. sincedb_path => "/data/app/logstash/db/sincedb_smrtpxl_grails_calls"
  9. discover_interval => 90
  10. # will want to experiment with longer stat_interval to reduce system overhead
  11. stat_interval => 60
  12. }
  13. }
  14.  
  15.  
  16. input {
  17. file {
  18. path => "/data/apps/smart-pixel-grails/logs/smartpixelserver.warnings"
  19. start_position => "beginning"
  20. type => "smrtpxl-grails-warnings"
  21. add_field => [ "platform", "BIT" ]
  22. add_field => [ "application", "SmartPixel" ]
  23. sincedb_path => "/data/app/logstash/db/sincedb_smrtpxl_grails_warngings"
  24. discover_interval => 90
  25. #will want to experiment with longer stat_interval to reduce system overhead
  26. stat_interval => 60
  27. }
  28. }
  29.  
  30.  
  31. filter {
  32. if [type] == "smrtpxl-grails-calls" {
  33. grok {
  34. match => ["message", "\[(?<date>%{DATESTAMP}\ %{TZ})\]\|\[%{INT:spid}\]\|\[%{GREEDYDATA:params}\]\|\[%{GREEDYDATA:pixel}\]$"]
  35. }
  36. urldecode {
  37. field => "params"
  38. }
  39. }
  40. if [type] == "smrtpxl-grails-warnings" {
  41. grok {
  42. match => ["message", "\[%{DATESTAMP:logtime}\:%{GREEDYDATA:timezone}\] %{LOGLEVEL:loglevel} %{GREEDYDATA:detail}$"]
  43. }
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement