Advertisement
Guest User

Untitled

a guest
May 1st, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.78 KB | None | 0 0
  1. ###############################################################################
  2. ############################# Winlogbeat ######################################
  3. winlogbeat:
  4. # The registry file is where Winlogbeat persists its state so that the beat
  5. # can resume after shutdown or an outage. The default is .winlogbeat.yml
  6. # in the directory in which it was started.
  7. registry_file: C:/ProgramData/winlogbeat/.winlogbeat.yml
  8.  
  9. # List of event logs to monitor.
  10. #
  11. # Optionally, ignore_older may be specified to filter events that are older
  12. # then the specified amount of time. If omitted then no filtering will
  13. # occur. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h"
  14. event_logs:
  15. - name: Application
  16. ignore_older: 72h
  17. - name: Security
  18. - name: System
  19.  
  20. # Diagnostic metrics that can retrieved through a web interface if a
  21. # bindaddress value (host:port) is specified. The web address will be
  22. # http://<bindaddress>/debug/vars
  23. #metrics:
  24. # bindaddress: 'localhost:8123'
  25.  
  26. ###############################################################################
  27. ############################# Libbeat Config ##################################
  28. # Base config file used by all other beats for using libbeat features
  29.  
  30. ############################# Output ##########################################
  31.  
  32. # Configure what outputs to use when sending the data collected by the beat.
  33. # Multiple outputs may be used.
  34. output:
  35.  
  36. ### Elasticsearch as output
  37. elasticsearch:
  38. # Array of hosts to connect to.
  39. # Scheme and port can be left out and will be set to the default (http and 9200)
  40. # In case you specify and additional path, the scheme is required: http://localhost:9200/path
  41. # IPv6 addresses should always be defined as: https://[2001:db8::1]:9200
  42. hosts: ["localhost:9200"]
  43.  
  44. # Optional protocol and basic auth credentials.
  45. #protocol: "https"
  46. #username: "admin"
  47. #password: "s3cr3t"
  48.  
  49. # Number of workers per Elasticsearch host.
  50. #worker: 1
  51.  
  52. # Optional index name. The default is "winlogbeat" and generates
  53. # [winlogbeat-]YYYY.MM.DD keys.
  54. #index: "winlogbeat"
  55.  
  56. # A template is used to set the mapping in Elasticsearch
  57. # By default template loading is disabled and no template is loaded.
  58. # These settings can be adjusted to load your own template or overwrite existing ones
  59. #template:
  60.  
  61. # Template name. By default the template name is winlogbeat.
  62. #name: "winlogbeat"
  63.  
  64. # Path to template file
  65. #path: "winlogbeat.template.json"
  66.  
  67. # Overwrite existing template
  68. #overwrite: false
  69.  
  70. # Optional HTTP Path
  71. #path: "/elasticsearch"
  72.  
  73. # Proxy server url
  74. #proxy_url: http://proxy:3128
  75.  
  76. # The number of times a particular Elasticsearch index operation is attempted. If
  77. # the indexing operation doesn't succeed after this many retries, the events are
  78. # dropped. The default is 3.
  79. #max_retries: 3
  80.  
  81. # The maximum number of events to bulk in a single Elasticsearch bulk API index request.
  82. # The default is 50.
  83. #bulk_max_size: 50
  84.  
  85. # Configure http request timeout before failing an request to Elasticsearch.
  86. #timeout: 90
  87.  
  88. # The number of seconds to wait for new events between two bulk API index requests.
  89. # If `bulk_max_size` is reached before this interval expires, addition bulk index
  90. # requests are made.
  91. #flush_interval: 1
  92.  
  93. # Boolean that sets if the topology is kept in Elasticsearch. The default is
  94. # false. This option makes sense only for Packetbeat.
  95. #save_topology: false
  96.  
  97. # The time to live in seconds for the topology information that is stored in
  98. # Elasticsearch. The default is 15 seconds.
  99. #topology_expire: 15
  100.  
  101. # tls configuration. By default is off.
  102. #tls:
  103. # List of root certificates for HTTPS server verifications
  104. #certificate_authorities: ["/etc/pki/root/ca.pem"]
  105.  
  106. # Certificate for TLS client authentication
  107. #certificate: "/etc/pki/client/cert.pem"
  108.  
  109. # Client Certificate Key
  110. #certificate_key: "/etc/pki/client/cert.key"
  111.  
  112. # Controls whether the client verifies server certificates and host name.
  113. # If insecure is set to true, all server host names and certificates will be
  114. # accepted. In this mode TLS based connections are susceptible to
  115. # man-in-the-middle attacks. Use only for testing.
  116. #insecure: true
  117.  
  118. # Configure cipher suites to be used for TLS connections
  119. #cipher_suites: []
  120.  
  121. # Configure curve types for ECDHE based cipher suites
  122. #curve_types: []
  123.  
  124. # Configure minimum TLS version allowed for connection to logstash
  125. #min_version: 1.0
  126.  
  127. # Configure maximum TLS version allowed for connection to logstash
  128. #max_version: 1.2
  129.  
  130.  
  131. ### Logstash as output
  132. #logstash:
  133. # The Logstash hosts
  134. #hosts: ["localhost:5044"]
  135.  
  136. # Number of workers per Logstash host.
  137. #worker: 1
  138.  
  139. # Set gzip compression level.
  140. #compression_level: info
  141.  
  142. # Optional load balance the events between the Logstash hosts
  143. #loadbalance: true
  144.  
  145. # Optional index name. The default index name depends on the each beat.
  146. # For Packetbeat, the default is set to packetbeat, for Topbeat
  147. # top topbeat and for Filebeat to filebeat.
  148. #index: winlogbeat
  149.  
  150. # Optional TLS. By default is off.
  151. #tls:
  152. # List of root certificates for HTTPS server verifications
  153. #certificate_authorities: ["/etc/pki/root/ca.pem"]
  154.  
  155. # Certificate for TLS client authentication
  156. #certificate: "/etc/pki/client/cert.pem"
  157.  
  158. # Client Certificate Key
  159. #certificate_key: "/etc/pki/client/cert.key"
  160.  
  161. # Controls whether the client verifies server certificates and host name.
  162. # If insecure is set to true, all server host names and certificates will be
  163. # accepted. In this mode TLS based connections are susceptible to
  164. # man-in-the-middle attacks. Use only for testing.
  165. #insecure: true
  166.  
  167. # Configure cipher suites to be used for TLS connections
  168. #cipher_suites: []
  169.  
  170. # Configure curve types for ECDHE based cipher suites
  171. #curve_types: []
  172.  
  173.  
  174. ### File as output
  175. #file:
  176. # Path to the directory where to save the generated files. The option is mandatory.
  177. #path: "/tmp/winlogbeat"
  178.  
  179. # Name of the generated files. The default is `winlogbeat` and it generates files: `winlogbeat`, `winlogbeat.1`, `winlogbeat.2`, etc.
  180. #filename: winlogbeat
  181.  
  182. # Maximum size in kilobytes of each file. When this size is reached, the files are
  183. # rotated. The default value is 10 MB.
  184. #rotate_every_kb: 10000
  185.  
  186. # Maximum number of files under path. When this number of files is reached, the
  187. # oldest file is deleted and the rest are shifted from last to first. The default
  188. # is 7 files.
  189. #number_of_files: 7
  190.  
  191.  
  192. ### Console output
  193. # console:
  194. # Pretty print json event
  195. #pretty: false
  196.  
  197.  
  198. ############################# Shipper #########################################
  199.  
  200. shipper:
  201. # The name of the shipper that publishes the network data. It can be used to group
  202. # all the transactions sent by a single shipper in the web interface.
  203. # If this options is not defined, the hostname is used.
  204. #name:
  205.  
  206. # The tags of the shipper are included in their own field with each
  207. # transaction published. Tags make it easy to group servers by different
  208. # logical properties.
  209. #tags: ["service-X", "web-tier"]
  210.  
  211. # Uncomment the following if you want to ignore transactions created
  212. # by the server on which the shipper is installed. This option is useful
  213. # to remove duplicates if shippers are installed on multiple servers.
  214. #ignore_outgoing: true
  215.  
  216. # How often (in seconds) shippers are publishing their IPs to the topology map.
  217. # The default is 10 seconds.
  218. #refresh_topology_freq: 10
  219.  
  220. # Expiration time (in seconds) of the IPs published by a shipper to the topology map.
  221. # All the IPs will be deleted afterwards. Note, that the value must be higher than
  222. # refresh_topology_freq. The default is 15 seconds.
  223. #topology_expire: 15
  224.  
  225. # Internal queue size for single events in processing pipeline
  226. #queue_size: 1000
  227.  
  228. # Configure local GeoIP database support.
  229. # If no paths are not configured geoip is disabled.
  230. #geoip:
  231. #paths:
  232. # - "/usr/share/GeoIP/GeoLiteCity.dat"
  233. # - "/usr/local/var/GeoIP/GeoLiteCity.dat"
  234.  
  235.  
  236. ############################# Logging #########################################
  237.  
  238. # There are three options for the log ouput: syslog, file, stderr.
  239. # Under Windos systems, the log files are per default sent to the file output,
  240. # under all other system per default to syslog.
  241. logging:
  242.  
  243. # Send all logging output to syslog. On Windows default is false, otherwise
  244. # default is true.
  245. #to_syslog: true
  246.  
  247. # Write all logging output to files. Beats automatically rotate files if rotateeverybytes
  248. # limit is reached.
  249. to_files: true
  250.  
  251. # To enable logging to files, to_files option has to be set to true
  252. files:
  253. # The directory where the log files will written to.
  254. path: C:/ProgramData/winlogbeat/Logs
  255.  
  256. # The name of the files where the logs are written to.
  257. #name: mybeat
  258.  
  259. # Configure log file size limit. If limit is reached, log file will be
  260. # automatically rotated
  261. rotateeverybytes: 10485760 # = 10MB
  262.  
  263. # Number of rotated log files to keep. Oldest files will be deleted first.
  264. #keepfiles: 7
  265.  
  266. # Enable debug output for selected components. To enable all selectors use ["*"]
  267. # Other available selectors are beat, publish, service
  268. # Multiple selectors can be chained.
  269. #selectors: [ ]
  270.  
  271. # Sets log level. The default log level is error.
  272. # Available log levels are: critical, error, warning, info, debug
  273. level: info
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement