Advertisement
dirtypablito

winlogbeat.yml

Mar 29th, 2019
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.51 KB | None | 0 0
  1. ###################### Winlogbeat Configuration Example ##########################
  2.  
  3. # This file is an example configuration file highlighting only the most common
  4. # options. The winlogbeat.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/winlogbeat/index.html
  9.  
  10. #======================= Winlogbeat specific options ==========================
  11.  
  12. # event_logs specifies a list of event logs to monitor as well as any
  13. # accompanying options. The YAML data type of event_logs is a list of
  14. # dictionaries.
  15. #
  16. # The supported keys are name (required), tags, fields, fields_under_root,
  17. # forwarded, ignore_older, level, event_id, provider, and include_xml. Please
  18. # visit the documentation for the complete details of each option.
  19. # https://go.es.io/WinlogbeatConfig
  20. winlogbeat.event_logs:
  21. - name: Application
  22. ignore_older: 72h
  23. - name: Security
  24. ignore_older: 72h
  25. - name: System
  26. ignore_older: 72h
  27. - name: ACEEventLog
  28. ignore_older: 72h
  29. - name: HardwareEvents
  30. ignore_older: 72h
  31. - name: Key Management Service
  32. ignore_older: 72h
  33. - name: Media Center
  34. ignore_older: 72h
  35. - name: Microsoft-windows-PowerShell/Operational
  36. ignore_older: 30m
  37. event_id: 4103, 4104
  38. - name: Microsoft-windows-sysmon/operational
  39. ignore_older: 30m
  40. - name: Windows Powershell
  41. ignore_older: 30m
  42. event_id: 400, 600
  43. - name: Microsoft-Windows-WMI-Activity/Operational
  44. event_id: 5857, 5858, 5859, 5860, 5861
  45.  
  46. #==================== Elasticsearch template setting ==========================
  47.  
  48. setup.template.settings:
  49. index.number_of_shards: 3
  50. #index.codec: best_compression
  51. #_source.enabled: false
  52.  
  53. #================================ General =====================================
  54.  
  55. # The name of the shipper that publishes the network data. It can be used to group
  56. # all the transactions sent by a single shipper in the web interface.
  57. #name:
  58.  
  59. # The tags of the shipper are included in their own field with each
  60. # transaction published.
  61. #tags: ["service-X", "web-tier"]
  62.  
  63. # Optional fields that you can specify to add additional information to the
  64. # output.
  65. #fields:
  66. # env: staging
  67.  
  68.  
  69. #============================== Dashboards =====================================
  70. # These settings control loading the sample dashboards to the Kibana index. Loading
  71. # the dashboards is disabled by default and can be enabled either by setting the
  72. # options here, or by using the `-setup` CLI flag or the `setup` command.
  73. #setup.dashboards.enabled: false
  74.  
  75. # The URL from where to download the dashboards archive. By default this URL
  76. # has a value which is computed based on the Beat name and version. For released
  77. # versions, this URL points to the dashboard archive on the artifacts.elastic.co
  78. # website.
  79. #setup.dashboards.url:
  80.  
  81. #============================== Kibana =====================================
  82.  
  83. # Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
  84. # This requires a Kibana endpoint configuration.
  85. setup.kibana:
  86.  
  87. # Kibana Host
  88. # Scheme and port can be left out and will be set to the default (http and 5601)
  89. # In case you specify and additional path, the scheme is required: http://localhost:5601/path
  90. # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
  91. host: "192.168.1.210:5601"
  92.  
  93. # Kibana Space ID
  94. # ID of the Kibana Space into which the dashboards should be loaded. By default,
  95. # the Default Space will be used.
  96. #space.id:
  97.  
  98. #============================= Elastic Cloud ==================================
  99.  
  100. # These settings simplify using winlogbeat with the Elastic Cloud (https://cloud.elastic.co/).
  101.  
  102. # The cloud.id setting overwrites the `output.elasticsearch.hosts` and
  103. # `setup.kibana.host` options.
  104. # You can find the `cloud.id` in the Elastic Cloud web UI.
  105. #cloud.id:
  106.  
  107. # The cloud.auth setting overwrites the `output.elasticsearch.username` and
  108. # `output.elasticsearch.password` settings. The format is `<user>:<pass>`.
  109. #cloud.auth:
  110.  
  111. #================================ Outputs =====================================
  112.  
  113. # Configure what output to use when sending the data collected by the beat.
  114.  
  115. #-------------------------- Elasticsearch output ------------------------------
  116. output.elasticsearch:
  117. # Array of hosts to connect to.
  118. hosts: ["192.168.1.210:9200"]
  119.  
  120. # Enabled ilm (beta) to use index lifecycle management instead daily indices.
  121. #ilm.enabled: false
  122.  
  123. # Optional protocol and basic auth credentials.
  124. #protocol: "https"
  125. #username: "elastic"
  126. #password: "changeme"
  127.  
  128. #----------------------------- Logstash output --------------------------------
  129. #output.logstash:
  130. # The Logstash hosts
  131. hosts: ["192.168.1.210:5044"]
  132.  
  133. # Optional SSL. By default is off.
  134. # List of root certificates for HTTPS server verifications
  135. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  136.  
  137. # Certificate for SSL client authentication
  138. #ssl.certificate: "/etc/pki/client/cert.pem"
  139.  
  140. # Client Certificate Key
  141. #ssl.key: "/etc/pki/client/cert.key"
  142.  
  143. #================================ Processors =====================================
  144.  
  145. # Configure processors to enhance or manipulate events generated by the beat.
  146.  
  147. processors:
  148. - add_host_metadata: ~
  149. - add_cloud_metadata: ~
  150.  
  151. #================================ Logging =====================================
  152.  
  153. # Sets log level. The default log level is info.
  154. # Available log levels are: error, warning, info, debug
  155. #logging.level: debug
  156.  
  157. # At debug level, you can selectively enable logging only for some components.
  158. # To enable all selectors use ["*"]. Examples of other selectors are "beat",
  159. # "publish", "service".
  160. logging.selectors: ["*"]
  161.  
  162. #============================== Xpack Monitoring ===============================
  163. # winlogbeat can export internal metrics to a central Elasticsearch monitoring
  164. # cluster. This requires xpack monitoring to be enabled in Elasticsearch. The
  165. # reporting is disabled by default.
  166.  
  167. # Set to true to enable the monitoring reporter.
  168. # xpack.monitoring.enabled: true
  169.  
  170. # Uncomment to send the metrics to Elasticsearch. Most settings from the
  171. # Elasticsearch output are accepted here as well. Any setting that is not set is
  172. # automatically inherited from the Elasticsearch output configuration, so if you
  173. # have the Elasticsearch output configured, you can simply uncomment the
  174. # following line.
  175. # xpack.monitoring.elasticsearch:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement