Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. filebeat:
  2. prospectors:
  3. - paths:
  4. - /data/dbdata/pg_log/*
  5. document_type: postgres
  6. input_type: log
  7.  
  8. registry_file: /var/lib/filebeat/registry
  9. output:
  10. logstash:
  11. hosts: ["10.29.31.132:5000"]
  12. shipper:
  13. logging:
  14. files:
  15.  
  16. cat /etc/logstash/conf.d/ingestion.conf
  17. input {
  18. tcp {
  19. port => 5000
  20. codec => plain {
  21. charset => "ISO-8859-1"
  22. }
  23. }
  24.  
  25. udp {
  26. port => 5000
  27. }
  28.  
  29. #rabbitmq {
  30. # durable => true
  31. # host => "stg-ingestionrabbit101.ihrcloud.net"
  32. # password => "s3ym0ur"
  33. # prefetch_count => 50
  34. # queue => "logstash"
  35. # threads => 3
  36. # type => "message"
  37. # user => "ingestion"
  38. # vhost => "/ingestion"
  39. #}
  40. }
  41.  
  42. filter {
  43. if [type] == "postgres" {
  44. multiline {
  45. pattern => "^\s"
  46. what => "previous"
  47. }
  48. }
  49. }
  50. output {
  51. if [type] == "message" {
  52. elasticsearch {
  53. hosts => ["dev-ingelkes101.ihrcloud.net"]
  54. index => "message-%{+YYYY.MM}"
  55. }
  56. }
  57.  
  58. if [type] == "postgres" {
  59. #elasticsearch {
  60. #hosts => ["dev-ingelkes101.ihrcloud.net"]
  61. #index => "syslogs-%{+YYYY.MM.DD}"
  62. #}
  63. #}
  64. file {
  65. path => "/tmp/syslogs-%{+YYYY.MM.DD}"
  66. }
  67. }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement