config.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {
  2. "Input": {
  3. "Kafka": {
  4. "Name": "easystash",
  5. "Brokers": [
  6. "172.16.186.156:19092",
  7. "172.16.186.157:19092",
  8. "172.16.186.158:19092",
  9. "172.16.186.159:19092",
  10. "172.16.186.160:19092",
  11. "172.16.186.161:19092"
  12. ],
  13. "Topic": "k8slog",
  14. "Group": "pro",
  15. "NumProducers": 16,
  16. "MetricsUrl": "http://localhost:2222/add"
  17. }
  18. },
  19. "Filters": [
  20. {
  21. "Action": "drop",
  22. "Conditions": [
  23. {
  24. "Key": "k8s_container_name",
  25. "Value": "-rpc",
  26. "Type": "contains"
  27. },
  28. {
  29. "Key": "level",
  30. "Value": "info",
  31. "Type": "match",
  32. "Op": "and"
  33. }
  34. ]
  35. },
  36. {
  37. "Action": "remove_field",
  38. "Fields": [
  39. "message",
  40. "_source",
  41. "_type",
  42. "_score",
  43. "_id",
  44. "@version",
  45. "topic",
  46. "index",
  47. "beat",
  48. "docker_container",
  49. "offset",
  50. "prospector",
  51. "source",
  52. "stream"
  53. ]
  54. }
  55. ],
  56. "Output": {
  57. "ElasticSearch": {
  58. "Hosts": [
  59. "172.16.141.14:9200",
  60. "172.16.141.15:9200",
  61. "172.16.141.16:9200",
  62. "172.16.141.17:9200",
  63. "172.16.140.195:9200",
  64. "172.16.140.196:9200",
  65. "172.16.140.197:9200",
  66. "172.16.140.198:9200",
  67. "172.16.140.199:9200",
  68. "172.16.140.200:9200",
  69. "172.16.140.201:9200",
  70. "172.16.140.202:9200"
  71. ],
  72. "DailyIndexPrefix": "k8s_pro-"
  73. }
  74. }
  75. }