Advertisement
Guest User

Untitled

a guest
Apr 17th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.96 KB | None | 0 0
  1. #################### Packetbeat Configuration Example #########################
  2.  
  3. # This file is an example configuration file highlighting only the most common
  4. # options. The packetbeat.reference.yml file from the same directory contains all the
  5. # supported options with more comments. You can use it as a reference.
  6. #
  7. # You can find the full configuration reference here:
  8. # https://www.elastic.co/guide/en/beats/packetbeat/index.html
  9.  
  10. #============================== Network device ================================
  11.  
  12. # Select the network interface to sniff the data. On Linux, you can use the
  13. # "any" keyword to sniff on all connected interfaces.
  14. packetbeat.interfaces.device: 0
  15.  
  16. #================================== Flows =====================================
  17.  
  18. # Set `enabled: false` or comment out all options to disable flows reporting.
  19. #packetbeat.flows:
  20. # Set network flow timeout. Flow is killed if no packet is received before being
  21. # timed out.
  22. #timeout: 30s
  23.  
  24. # Configure reporting period. If set to -1, only killed flows will be reported
  25. #period: 10s
  26.  
  27. #========================== Transaction protocols =============================
  28.  
  29. packetbeat.protocols:
  30. - type: icmp
  31. # Enable ICMPv4 and ICMPv6 monitoring. Default: false
  32. enabled: true
  33.  
  34. - type: amqp
  35. # Configure the ports where to listen for AMQP traffic. You can disable
  36. # the AMQP protocol by commenting out the list of ports.
  37. #ports: [5672]
  38.  
  39. - type: cassandra
  40. #Cassandra port for traffic monitoring.
  41. #ports: [9042]
  42.  
  43. - type: dns
  44. # Configure the ports where to listen for DNS traffic. You can disable
  45. # the DNS protocol by commenting out the list of ports.
  46. ports: [53]
  47. send_request: true
  48. send_response: true
  49.  
  50. # include_authorities controls whether or not the dns.authorities field
  51. # (authority resource records) is added to messages.
  52. #include_authorities: true
  53.  
  54. # include_additionals controls whether or not the dns.additionals field
  55. # (additional resource records) is added to messages.
  56. #include_additionals: true
  57.  
  58. - type: http
  59. # Configure the ports where to listen for HTTP traffic. You can disable
  60. # the HTTP protocol by commenting out the list of ports.
  61. #ports: [80, 8080, 8000, 5000, 8002]
  62.  
  63. - type: memcache
  64. # Configure the ports where to listen for memcache traffic. You can disable
  65. # the Memcache protocol by commenting out the list of ports.
  66. #ports: [11211]
  67.  
  68. - type: mysql
  69. # Configure the ports where to listen for MySQL traffic. You can disable
  70. # the MySQL protocol by commenting out the list of ports.
  71. #ports: [3306]
  72.  
  73. - type: pgsql
  74. # Configure the ports where to listen for Pgsql traffic. You can disable
  75. # the Pgsql protocol by commenting out the list of ports.
  76. #ports: [5432]
  77.  
  78. - type: redis
  79. # Configure the ports where to listen for Redis traffic. You can disable
  80. # the Redis protocol by commenting out the list of ports.
  81. #ports: [6379]
  82.  
  83. - type: thrift
  84. # Configure the ports where to listen for Thrift-RPC traffic. You can disable
  85. # the Thrift-RPC protocol by commenting out the list of ports.
  86. #ports: [9090]
  87.  
  88. - type: mongodb
  89. # Configure the ports where to listen for MongoDB traffic. You can disable
  90. # the MongoDB protocol by commenting out the list of ports.
  91. #ports: [27017]
  92.  
  93. - type: nfs
  94. # Configure the ports where to listen for NFS traffic. You can disable
  95. # the NFS protocol by commenting out the list of ports.
  96. #ports: [2049]
  97.  
  98. - type: tls
  99. # Configure the ports where to listen for TLS traffic. You can disable
  100. # the TLS protocol by commenting out the list of ports.
  101. #ports: [443]
  102.  
  103. #==================== Elasticsearch template setting ==========================
  104.  
  105. setup.template.settings:
  106. index.number_of_shards: 3
  107. #index.codec: best_compression
  108. #_source.enabled: false
  109.  
  110. #================================ General =====================================
  111.  
  112. # The name of the shipper that publishes the network data. It can be used to group
  113. # all the transactions sent by a single shipper in the web interface.
  114. #name:
  115.  
  116. # The tags of the shipper are included in their own field with each
  117. # transaction published.
  118. tags: ["packetbeat"]
  119.  
  120. # Optional fields that you can specify to add additional information to the
  121. # output.
  122. #fields:
  123. # env: staging
  124.  
  125.  
  126. #============================== Dashboards =====================================
  127. # These settings control loading the sample dashboards to the Kibana index. Loading
  128. # the dashboards is disabled by default and can be enabled either by setting the
  129. # options here, or by using the `-setup` CLI flag or the `setup` command.
  130. #setup.dashboards.enabled: false
  131.  
  132. # The URL from where to download the dashboards archive. By default this URL
  133. # has a value which is computed based on the Beat name and version. For released
  134. # versions, this URL points to the dashboard archive on the artifacts.elastic.co
  135. # website.
  136. #setup.dashboards.url:
  137.  
  138. #============================== Kibana =====================================
  139.  
  140. # Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
  141. # This requires a Kibana endpoint configuration.
  142. setup.kibana:
  143.  
  144. # Kibana Host
  145. # Scheme and port can be left out and will be set to the default (http and 5601)
  146. # In case you specify and additional path, the scheme is required: http://localhost:5601/path
  147. # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
  148. #host: "localhost:5601"
  149.  
  150. #============================= Elastic Cloud ==================================
  151.  
  152. # These settings simplify using packetbeat with the Elastic Cloud (https://cloud.elastic.co/).
  153.  
  154. # The cloud.id setting overwrites the `output.elasticsearch.hosts` and
  155. # `setup.kibana.host` options.
  156. # You can find the `cloud.id` in the Elastic Cloud web UI.
  157. #cloud.id:
  158.  
  159. # The cloud.auth setting overwrites the `output.elasticsearch.username` and
  160. # `output.elasticsearch.password` settings. The format is `<user>:<pass>`.
  161. #cloud.auth:
  162.  
  163. #================================ Outputs =====================================
  164.  
  165. # Configure what output to use when sending the data collected by the beat.
  166.  
  167. #-------------------------- Elasticsearch output ------------------------------
  168. #output.elasticsearch:
  169. # Array of hosts to connect to.
  170. #hosts: ["172.16.1.4:5044"]
  171.  
  172. # Optional protocol and basic auth credentials.
  173. #protocol: "https"
  174. #username: "elastic"
  175. #password: "changeme"
  176.  
  177. #----------------------------- Logstash output --------------------------------
  178. output.logstash:
  179. # The Logstash hosts
  180. hosts: ["172.16.1.4:5044"]
  181.  
  182. # Optional SSL. By default is off.
  183. # List of root certificates for HTTPS server verifications
  184. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  185.  
  186. # Certificate for SSL client authentication
  187. #ssl.certificate: "/etc/pki/client/cert.pem"
  188.  
  189. # Client Certificate Key
  190. #ssl.key: "/etc/pki/client/cert.key"
  191.  
  192. #================================ Logging =====================================
  193.  
  194. # Sets log level. The default log level is info.
  195. # Available log levels are: error, warning, info, debug
  196. #logging.level: debug
  197.  
  198. # At debug level, you can selectively enable logging only for some components.
  199. # To enable all selectors use ["*"]. Examples of other selectors are "beat",
  200. # "publish", "service".
  201. #logging.selectors: ["*"]
  202.  
  203. #============================== Xpack Monitoring ===============================
  204. # packetbeat can export internal metrics to a central Elasticsearch monitoring
  205. # cluster. This requires xpack monitoring to be enabled in Elasticsearch. The
  206. # reporting is disabled by default.
  207.  
  208. # Set to true to enable the monitoring reporter.
  209. #xpack.monitoring.enabled: false
  210.  
  211. # Uncomment to send the metrics to Elasticsearch. Most settings from the
  212. # Elasticsearch output are accepted here as well. Any setting that is not set is
  213. # automatically inherited from the Elasticsearch output configuration, so if you
  214. # have the Elasticsearch output configured, you can simply uncomment the
  215. # following line.
  216. #xpack.monitoring.elasticsearch:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement