Advertisement
Guest User

Untitled

a guest
Feb 7th, 2018
645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.92 KB | None | 0 0
  1. ########################## Auditbeat Configuration #############################
  2.  
  3. # This is a reference configuration file documenting all non-deprecated options
  4. # in comments. For a shorter configuration example that contains only the most
  5. # common options, please see auditbeat.yml in the same directory.
  6. #
  7. # You can find the full configuration reference here:
  8. # https://www.elastic.co/guide/en/beats/auditbeat/index.html
  9.  
  10. #============================ Config Reloading ================================
  11.  
  12. # Config reloading allows to dynamically load modules. Each file which is
  13. # monitored must contain one or multiple modules as a list.
  14. auditbeat.config.modules:
  15.  
  16. # Glob pattern for configuration reloading
  17. path: ${path.config}/conf.d/*.yml
  18.  
  19. # Period on which files under path should be checked for changes
  20. reload.period: 10s
  21.  
  22. # Set to true to enable config reloading
  23. reload.enabled: false
  24.  
  25. # Maximum amount of time to randomly delay the start of a metricset. Use 0 to
  26. # disable startup delay.
  27. auditbeat.max_start_delay: 10s
  28.  
  29. #========================== Modules configuration =============================
  30. auditbeat.modules:
  31.  
  32. # The auditd module collects events from the audit framework in the Linux
  33. # kernel. You need to specify audit rules for the events that you want to audit.
  34. - module: auditd
  35. resolve_ids: true
  36. failure_mode: silent
  37. backlog_limit: 8196
  38. rate_limit: 0
  39. include_raw_message: false
  40. include_warnings: false
  41. audit_rules: |
  42. ## Define audit rules here.
  43. ## Create file watches (-w) or syscall audits (-a or -A). Uncomment these
  44. ## examples or add your own rules.
  45.  
  46. ## If you are on a 64 bit platform, everything should be running
  47. ## in 64 bit mode. This rule will detect any use of the 32 bit syscalls
  48. ## because this might be a sign of someone exploiting a hole in the 32
  49. ## bit API.
  50. -a always,exit -F arch=b32 -S all -F key=32bit-abi
  51.  
  52. ## Executions.
  53. -a always,exit -F arch=b64 -S execve,execveat -k exec
  54.  
  55. ## External access (warning: these can be expensive to audit).
  56. #-a always,exit -F arch=b64 -S accept,bind,connect -F key=external-access
  57.  
  58. ## Identity changes.
  59. -w /etc/group -p wa -k identity
  60. -w /etc/passwd -p wa -k identity
  61. -w /etc/gshadow -p wa -k identity
  62.  
  63. ## Unauthorized access attempts.
  64. -a always,exit -F arch=b64 -S open,creat,truncate,ftruncate,openat,open_by_handle_at -F exit=-EACCES -k access
  65. -a always,exit -F arch=b64 -S open,creat,truncate,ftruncate,openat,open_by_handle_at -F exit=-EPERM -k access
  66.  
  67. # The file integrity module sends events when files are changed (created,
  68. # updated, deleted). The events contain file metadata and hashes.
  69. - module: file_integrity
  70. paths:
  71. - /bin
  72. - /usr/bin
  73. - /sbin
  74. - /usr/sbin
  75. - /etc
  76.  
  77. # List of regular expressions to filter out notifications for unwanted files.
  78. # Wrap in single quotes to workaround YAML escaping rules. By default no files
  79. # are ignored.
  80. exclude_files:
  81. - '(?i)\.sw[nop]$'
  82. - '~$'
  83. - '/\.git($|/)'
  84.  
  85. # Scan over the configured file paths at startup and send events for new or
  86. # modified files since the last time Auditbeat was running.
  87. scan_at_start: true
  88.  
  89. # Average scan rate. This throttles the amount of CPU and I/O that Auditbeat
  90. # consumes at startup while scanning. Default is "50 MiB".
  91. scan_rate_per_sec: 50 MiB
  92.  
  93. # Limit on the size of files that will be hashed. Default is "100 MiB".
  94. # Limit on the size of files that will be hashed. Default is "100 MiB".
  95. max_file_size: 100 MiB
  96.  
  97. # Hash types to compute when the file changes. Supported types are
  98. # blake2b_256, blake2b_384, blake2b_512, md5, sha1, sha224, sha256, sha384,
  99. # sha512, sha512_224, sha512_256, sha3_224, sha3_256, sha3_384 and sha3_512.
  100. # Default is sha1.
  101. hash_types: [sha1]
  102.  
  103. # Detect changes to files included in subdirectories. Disabled by default.
  104. recursive: false
  105.  
  106.  
  107. #================================ General ======================================
  108.  
  109. # The name of the shipper that publishes the network data. It can be used to group
  110. # all the transactions sent by a single shipper in the web interface.
  111. # If this options is not defined, the hostname is used.
  112. #name:
  113.  
  114. # The tags of the shipper are included in their own field with each
  115. # transaction published. Tags make it easy to group servers by different
  116. # logical properties.
  117. #tags: ["service-X", "web-tier"]
  118.  
  119. # Optional fields that you can specify to add additional information to the
  120. # output. Fields can be scalar values, arrays, dictionaries, or any nested
  121. # combination of these.
  122. #fields:
  123. # env: staging
  124.  
  125. # If this option is set to true, the custom fields are stored as top-level
  126. # fields in the output document instead of being grouped under a fields
  127. # sub-dictionary. Default is false.
  128. #fields_under_root: false
  129.  
  130. # Internal queue configuration for buffering events to be published.
  131. #queue:
  132. # Queue type by name (default 'mem')
  133. # The memory queue will present all available events (up to the outputs
  134. # bulk_max_size) to the output, the moment the output is ready to server
  135. # another batch of events.
  136. #mem:
  137. # Max number of events the queue can buffer.
  138. #events: 4096
  139.  
  140. # Hints the minimum number of events stored in the queue,
  141. # before providing a batch of events to the outputs.
  142. # A value of 0 (the default) ensures events are immediately available
  143. # to be sent to the outputs.
  144. #flush.min_events: 2048
  145.  
  146. # Maximum duration after which events are available to the outputs,
  147. # if the number of events stored in the queue is < min_flush_events.
  148. #flush.timeout: 1s
  149.  
  150. # Sets the maximum number of CPUs that can be executing simultaneously. The
  151. # default is the number of logical CPUs available in the system.
  152. #max_procs:
  153.  
  154. #================================ Processors ===================================
  155.  
  156. # Processors are used to reduce the number of fields in the exported event or to
  157. # enhance the event with external metadata. This section defines a list of
  158. # processors that are applied one by one and the first one receives the initial
  159. # event:
  160. #
  161. # event -> filter1 -> event1 -> filter2 ->event2 ...
  162. #
  163. # The supported processors are drop_fields, drop_event, include_fields, and
  164. # add_cloud_metadata.
  165. #
  166. # For example, you can use the following processors to keep the fields that
  167. # contain CPU load percentages, but remove the fields that contain CPU ticks
  168. # values:
  169. #
  170. processors:
  171. - include_fields:
  172. fields: ["cpu"]
  173. #- drop_fields:
  174. # fields: ["cpu.user", "cpu.system"]
  175. #
  176. # The following example drops the events that have the HTTP response code 200:
  177. #
  178. #processors:
  179. #- drop_event:
  180. # when:
  181. # equals:
  182. # http.code: 200
  183. #
  184. # The following example enriches each event with metadata from the cloud
  185. # provider about the host machine. It works on EC2, GCE, DigitalOcean,
  186. # Tencent Cloud, and Alibaba Cloud.
  187. #
  188. #processors:
  189. #- add_cloud_metadata: ~
  190. #
  191. # The following example enriches each event with the machine's local time zone
  192. # offset from UTC.
  193. #
  194. #processors:
  195. #- add_locale:
  196. # format: offset
  197. #
  198. # The following example enriches each event with docker metadata, it matches
  199. # given fields to an existing container id and adds info from that container:
  200. #
  201. #processors:
  202. #- add_docker_metadata:
  203. # host: "unix:///var/run/docker.sock"
  204. # match_fields: ["system.process.cgroup.id"]
  205. # match_pids: ["process.pid", "process.ppid"]
  206. # match_source: true
  207. # match_source_index: 4
  208. # cleanup_timeout: 60
  209. # # To connect to Docker over TLS you must specify a client and CA certificate.
  210. # #ssl:
  211. # # certificate_authority: "/etc/pki/root/ca.pem"
  212. # # certificate: "/etc/pki/client/cert.pem"
  213. # # key: "/etc/pki/client/cert.key"
  214. #
  215. # The following example enriches each event with docker metadata, it matches
  216. # container id from log path available in `source` field (by default it expects
  217. # it to be /var/lib/docker/containers/*/*.log).
  218. #
  219. #processors:
  220. #- add_docker_metadata: ~
  221.  
  222. #============================= Elastic Cloud ==================================
  223.  
  224. # These settings simplify using beatname with the Elastic Cloud (https://cloud.elastic.co/).
  225.  
  226. # The cloud.id setting overwrites the `output.elasticsearch.hosts` and
  227. # `setup.kibana.host` options.
  228. # You can find the `cloud.id` in the Elastic Cloud web UI.
  229. #cloud.id:
  230.  
  231. # The cloud.auth setting overwrites the `output.elasticsearch.username` and
  232. # `output.elasticsearch.password` settings. The format is `<user>:<pass>`.
  233. #cloud.auth:
  234.  
  235. #================================ Outputs ======================================
  236.  
  237. # Configure what output to use when sending the data collected by the beat.
  238.  
  239. #-------------------------- Elasticsearch output -------------------------------
  240. #output.elasticsearch:
  241. # Boolean flag to enable or disable the output module.
  242. #enabled: true
  243.  
  244. # Array of hosts to connect to.
  245. # Scheme and port can be left out and will be set to the default (http and 9200)
  246. # In case you specify and additional path, the scheme is required: http://localhost:9200/path
  247. # IPv6 addresses should always be defined as: https://[2001:db8::1]:9200
  248. # hosts: ["localhost:9200"]
  249.  
  250. # Set gzip compression level.
  251. #compression_level: 0
  252.  
  253. # Optional protocol and basic auth credentials.
  254. #protocol: "https"
  255. #username: "elastic"
  256. #password: "changeme"
  257.  
  258. # Dictionary of HTTP parameters to pass within the url with index operations.
  259. #parameters:
  260. #param1: value1
  261. #param2: value2
  262.  
  263. # Number of workers per Elasticsearch host.
  264. #worker: 1
  265.  
  266. # Optional index name. The default is "beat-index-prefix" plus date
  267. # and generates [beat-index-prefix-]YYYY.MM.DD keys.
  268. # In case you modify this pattern you must update setup.template.name and setup.template.pattern accordingly.
  269. #index: "beat-index-prefix-%{[beat.version]}-%{+yyyy.MM.dd}"
  270.  
  271. # Optional ingest node pipeline. By default no pipeline will be used.
  272. #pipeline: ""
  273.  
  274. # Optional HTTP Path
  275. #path: "/elasticsearch"
  276.  
  277. # Custom HTTP headers to add to each request
  278. #headers:
  279. # X-My-Header: Contents of the header
  280.  
  281. # Proxy server url
  282. #proxy_url: http://proxy:3128
  283.  
  284. # The number of times a particular Elasticsearch index operation is attempted. If
  285. # the indexing operation doesn't succeed after this many retries, the events are
  286. # dropped. The default is 3.
  287. #max_retries: 3
  288.  
  289. # The maximum number of events to bulk in a single Elasticsearch bulk API index request.
  290. # The default is 50.
  291. #bulk_max_size: 50
  292.  
  293. # Configure http request timeout before failing an request to Elasticsearch.
  294. #timeout: 90
  295.  
  296. # Use SSL settings for HTTPS.
  297. #ssl.enabled: true
  298.  
  299. # Configure SSL verification mode. If `none` is configured, all server hosts
  300. # and certificates will be accepted. In this mode, SSL based connections are
  301. # susceptible to man-in-the-middle attacks. Use only for testing. Default is
  302. # `full`.
  303. #ssl.verification_mode: full
  304.  
  305. # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
  306. # 1.2 are enabled.
  307. #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
  308.  
  309. # SSL configuration. By default is off.
  310. # List of root certificates for HTTPS server verifications
  311. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  312.  
  313. # Certificate for SSL client authentication
  314. #ssl.certificate: "/etc/pki/client/cert.pem"
  315.  
  316. # Client Certificate Key
  317. #ssl.key: "/etc/pki/client/cert.key"
  318.  
  319. # Optional passphrase for decrypting the Certificate Key.
  320. #ssl.key_passphrase: ''
  321.  
  322. # Configure cipher suites to be used for SSL connections
  323. #ssl.cipher_suites: []
  324.  
  325. # Configure curve types for ECDHE based cipher suites
  326. #ssl.curve_types: []
  327.  
  328. # Configure what types of renegotiation are supported. Valid options are
  329. # never, once, and freely. Default is never.
  330. #ssl.renegotiation: never
  331.  
  332.  
  333. #----------------------------- Logstash output ---------------------------------
  334. #output.logstash:
  335. # Boolean flag to enable or disable the output module.
  336. #enabled: true
  337.  
  338. # The Logstash hosts
  339. #hosts: ["localhost:5044"]
  340.  
  341. # Number of workers per Logstash host.
  342. #worker: 1
  343.  
  344. # Set gzip compression level.
  345. #compression_level: 3
  346.  
  347. # Optional maximum time to live for a connection to Logstash, after which the
  348. # connection will be re-established. A value of `0s` (the default) will
  349. # disable this feature.
  350. #
  351. # Not yet supported for async connections (i.e. with the "pipelining" option set)
  352. #ttl: 30s
  353.  
  354. # Optional load balance the events between the Logstash hosts. Default is false.
  355. #loadbalance: false
  356.  
  357. # Number of batches to be sent asynchronously to logstash while processing
  358. # new batches.
  359. #pipelining: 2
  360.  
  361. # If enabled only a subset of events in a batch of events is transferred per
  362. # transaction. The number of events to be sent increases up to `bulk_max_size`
  363. # if no error is encountered.
  364. #slow_start: false
  365.  
  366. # Optional index name. The default index name is set to beat-index-prefix
  367. # in all lowercase.
  368. #index: 'beat-index-prefix'
  369.  
  370. # SOCKS5 proxy server URL
  371. #proxy_url: socks5://user:password@socks5-server:2233
  372.  
  373. # Resolve names locally when using a proxy server. Defaults to false.
  374. #proxy_use_local_resolver: false
  375.  
  376. # Enable SSL support. SSL is automatically enabled, if any SSL setting is set.
  377. #ssl.enabled: true
  378.  
  379. # Configure SSL verification mode. If `none` is configured, all server hosts
  380. # and certificates will be accepted. In this mode, SSL based connections are
  381. # susceptible to man-in-the-middle attacks. Use only for testing. Default is
  382. # `full`.
  383. #ssl.verification_mode: full
  384.  
  385. # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
  386. # 1.2 are enabled.
  387. #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
  388.  
  389. # Optional SSL configuration options. SSL is off by default.
  390. # List of root certificates for HTTPS server verifications
  391. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  392.  
  393. # Certificate for SSL client authentication
  394. #ssl.certificate: "/etc/pki/client/cert.pem"
  395.  
  396. # Client Certificate Key
  397. #ssl.key: "/etc/pki/client/cert.key"
  398.  
  399. # Optional passphrase for decrypting the Certificate Key.
  400. #ssl.key_passphrase: ''
  401.  
  402. # Configure cipher suites to be used for SSL connections
  403. #ssl.cipher_suites: []
  404.  
  405. # Configure curve types for ECDHE based cipher suites
  406. #ssl.curve_types: []
  407.  
  408. # Configure what types of renegotiation are supported. Valid options are
  409. # never, once, and freely. Default is never.
  410. #ssl.renegotiation: never
  411.  
  412. #------------------------------- Kafka output ----------------------------------
  413. #output.kafka:
  414. # Boolean flag to enable or disable the output module.
  415. #enabled: true
  416.  
  417. # The list of Kafka broker addresses from where to fetch the cluster metadata.
  418. # The cluster metadata contain the actual Kafka brokers events are published
  419. # to.
  420. #hosts: ["localhost:9092"]
  421.  
  422. # The Kafka topic used for produced events. The setting can be a format string
  423. # using any event field. To set the topic from document type use `%{[type]}`.
  424. #topic: beats
  425.  
  426. # The Kafka event key setting. Use format string to create unique event key.
  427. # By default no event key will be generated.
  428. #key: ''
  429.  
  430. # The Kafka event partitioning strategy. Default hashing strategy is `hash`
  431. # using the `output.kafka.key` setting or randomly distributes events if
  432. # `output.kafka.key` is not configured.
  433. #partition.hash:
  434. # If enabled, events will only be published to partitions with reachable
  435. # leaders. Default is false.
  436. #reachable_only: false
  437.  
  438. # Configure alternative event field names used to compute the hash value.
  439. # If empty `output.kafka.key` setting will be used.
  440. # Default value is empty list.
  441. #hash: []
  442.  
  443. # Authentication details. Password is required if username is set.
  444. #username: ''
  445. #password: ''
  446.  
  447. # Kafka version beatname is assumed to run against. Defaults to the oldest
  448. # supported stable version (currently version 0.8.2.0)
  449. #version: 0.8.2
  450.  
  451. # Metadata update configuration. Metadata do contain leader information
  452. # deciding which broker to use when publishing.
  453. #metadata:
  454. # Max metadata request retry attempts when cluster is in middle of leader
  455. # election. Defaults to 3 retries.
  456. #retry.max: 3
  457.  
  458. # Waiting time between retries during leader elections. Default is 250ms.
  459. #retry.backoff: 250ms
  460.  
  461. # Refresh metadata interval. Defaults to every 10 minutes.
  462. #refresh_frequency: 10m
  463.  
  464. # The number of concurrent load-balanced Kafka output workers.
  465. #worker: 1
  466.  
  467. # The number of times to retry publishing an event after a publishing failure.
  468. # After the specified number of retries, the events are typically dropped.
  469. # Some Beats, such as Filebeat, ignore the max_retries setting and retry until
  470. # all events are published. Set max_retries to a value less than 0 to retry
  471. # until all events are published. The default is 3.
  472. #max_retries: 3
  473.  
  474. # The maximum number of events to bulk in a single Kafka request. The default
  475. # is 2048.
  476. #bulk_max_size: 2048
  477.  
  478. # The number of seconds to wait for responses from the Kafka brokers before
  479. # timing out. The default is 30s.
  480. #timeout: 30s
  481.  
  482. # The maximum duration a broker will wait for number of required ACKs. The
  483. # default is 10s.
  484. #broker_timeout: 10s
  485.  
  486. # The number of messages buffered for each Kafka broker. The default is 256.
  487. #channel_buffer_size: 256
  488.  
  489. # The keep-alive period for an active network connection. If 0s, keep-alives
  490. # are disabled. The default is 0 seconds.
  491. #keep_alive: 0
  492.  
  493. # Sets the output compression codec. Must be one of none, snappy and gzip. The
  494. # default is gzip.
  495. #compression: gzip
  496.  
  497. # The maximum permitted size of JSON-encoded messages. Bigger messages will be
  498. # dropped. The default value is 1000000 (bytes). This value should be equal to
  499. # or less than the broker's message.max.bytes.
  500. #max_message_bytes: 1000000
  501.  
  502. # The ACK reliability level required from broker. 0=no response, 1=wait for
  503. # local commit, -1=wait for all replicas to commit. The default is 1. Note:
  504. # If set to 0, no ACKs are returned by Kafka. Messages might be lost silently
  505. # on error.
  506. #required_acks: 1
  507.  
  508. # The configurable ClientID used for logging, debugging, and auditing
  509. # purposes. The default is "beats".
  510. #client_id: beats
  511.  
  512. # Enable SSL support. SSL is automatically enabled, if any SSL setting is set.
  513. #ssl.enabled: true
  514.  
  515. # Optional SSL configuration options. SSL is off by default.
  516. # List of root certificates for HTTPS server verifications
  517. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  518.  
  519. # Configure SSL verification mode. If `none` is configured, all server hosts
  520. # and certificates will be accepted. In this mode, SSL based connections are
  521. # susceptible to man-in-the-middle attacks. Use only for testing. Default is
  522. # `full`.
  523. #ssl.verification_mode: full
  524.  
  525. # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
  526. # 1.2 are enabled.
  527. #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
  528.  
  529. # Certificate for SSL client authentication
  530. #ssl.certificate: "/etc/pki/client/cert.pem"
  531.  
  532. # Client Certificate Key
  533. #ssl.key: "/etc/pki/client/cert.key"
  534.  
  535. # Optional passphrase for decrypting the Certificate Key.
  536. #ssl.key_passphrase: ''
  537.  
  538. # Configure cipher suites to be used for SSL connections
  539. #ssl.cipher_suites: []
  540.  
  541. # Configure curve types for ECDHE based cipher suites
  542. #ssl.curve_types: []
  543.  
  544. # Configure what types of renegotiation are supported. Valid options are
  545. # never, once, and freely. Default is never.
  546. #ssl.renegotiation: never
  547.  
  548. #------------------------------- Redis output ----------------------------------
  549. #output.redis:
  550. # Boolean flag to enable or disable the output module.
  551. #enabled: true
  552.  
  553. # The list of Redis servers to connect to. If load balancing is enabled, the
  554. # events are distributed to the servers in the list. If one server becomes
  555. # unreachable, the events are distributed to the reachable servers only.
  556. #hosts: ["localhost:6379"]
  557.  
  558. # The Redis port to use if hosts does not contain a port number. The default
  559. # is 6379.
  560. #port: 6379
  561.  
  562. # The name of the Redis list or channel the events are published to. The
  563. # default is beatname.
  564. #key: beatname
  565.  
  566. # The password to authenticate with. The default is no authentication.
  567. #password:
  568.  
  569. # The Redis database number where the events are published. The default is 0.
  570. #db: 0
  571.  
  572. # The Redis data type to use for publishing events. If the data type is list,
  573. # the Redis RPUSH command is used. If the data type is channel, the Redis
  574. # PUBLISH command is used. The default value is list.
  575. #datatype: list
  576.  
  577. # The number of workers to use for each host configured to publish events to
  578. # Redis. Use this setting along with the loadbalance option. For example, if
  579. # you have 2 hosts and 3 workers, in total 6 workers are started (3 for each
  580. # host).
  581. #worker: 1
  582.  
  583. # If set to true and multiple hosts or workers are configured, the output
  584. # plugin load balances published events onto all Redis hosts. If set to false,
  585. # the output plugin sends all events to only one host (determined at random)
  586. # and will switch to another host if the currently selected one becomes
  587. # unreachable. The default value is true.
  588. #loadbalance: true
  589.  
  590. # The Redis connection timeout in seconds. The default is 5 seconds.
  591. #timeout: 5s
  592.  
  593. # The number of times to retry publishing an event after a publishing failure.
  594. # After the specified number of retries, the events are typically dropped.
  595. # Some Beats, such as Filebeat, ignore the max_retries setting and retry until
  596. # all events are published. Set max_retries to a value less than 0 to retry
  597. # until all events are published. The default is 3.
  598. #max_retries: 3
  599.  
  600. # The maximum number of events to bulk in a single Redis request or pipeline.
  601. # The default is 2048.
  602. #bulk_max_size: 2048
  603.  
  604. # The URL of the SOCKS5 proxy to use when connecting to the Redis servers. The
  605. # value must be a URL with a scheme of socks5://.
  606. #proxy_url:
  607.  
  608. # This option determines whether Redis hostnames are resolved locally when
  609. # using a proxy. The default value is false, which means that name resolution
  610. # occurs on the proxy server.
  611. #proxy_use_local_resolver: false
  612.  
  613. # Enable SSL support. SSL is automatically enabled, if any SSL setting is set.
  614. #ssl.enabled: true
  615.  
  616. # Configure SSL verification mode. If `none` is configured, all server hosts
  617. # and certificates will be accepted. In this mode, SSL based connections are
  618. # susceptible to man-in-the-middle attacks. Use only for testing. Default is
  619. # `full`.
  620. #ssl.verification_mode: full
  621.  
  622. # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
  623. # 1.2 are enabled.
  624. #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
  625.  
  626. # Optional SSL configuration options. SSL is off by default.
  627. # List of root certificates for HTTPS server verifications
  628. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  629.  
  630. # Certificate for SSL client authentication
  631. #ssl.certificate: "/etc/pki/client/cert.pem"
  632.  
  633. # Client Certificate Key
  634. #ssl.key: "/etc/pki/client/cert.key"
  635.  
  636. # Optional passphrase for decrypting the Certificate Key.
  637. #ssl.key_passphrase: ''
  638.  
  639. # Configure cipher suites to be used for SSL connections
  640. #ssl.cipher_suites: []
  641.  
  642. # Configure curve types for ECDHE based cipher suites
  643. #ssl.curve_types: []
  644.  
  645. # Configure what types of renegotiation are supported. Valid options are
  646. # never, once, and freely. Default is never.
  647. #ssl.renegotiation: never
  648.  
  649. #------------------------------- File output -----------------------------------
  650. output.file:
  651. # Boolean flag to enable or disable the output module.
  652. enabled: true
  653.  
  654. # Path to the directory where to save the generated files. The option is
  655. # mandatory.
  656. path: "/tmp"
  657.  
  658. # Name of the generated files. The default is `beatname` and it generates
  659. # files: `beatname`, `beatname.1`, `beatname.2`, etc.
  660. filename: beatname
  661.  
  662. # Maximum size in kilobytes of each file. When this size is reached, and on
  663. # every beatname restart, the files are rotated. The default value is 10240
  664. # kB.
  665. #rotate_every_kb: 10000
  666.  
  667. # Maximum number of files under path. When this number of files is reached,
  668. # the oldest file is deleted and the rest are shifted from last to first. The
  669. # default is 7 files.
  670. #number_of_files: 7
  671.  
  672. # Permissions to use for file creation. The default is 0600.
  673. #permissions: 0600
  674.  
  675.  
  676. #----------------------------- Console output ---------------------------------
  677. #output.console:
  678. # Boolean flag to enable or disable the output module.
  679. #enabled: true
  680.  
  681. # Pretty print json event
  682. #pretty: false
  683.  
  684. #================================= Paths ======================================
  685.  
  686. # The home path for the beatname installation. This is the default base path
  687. # for all other path settings and for miscellaneous files that come with the
  688. # distribution (for example, the sample dashboards).
  689. # If not set by a CLI flag or in the configuration file, the default for the
  690. # home path is the location of the binary.
  691. #path.home:
  692.  
  693. # The configuration path for the beatname installation. This is the default
  694. # base path for configuration files, including the main YAML configuration file
  695. # and the Elasticsearch template file. If not set by a CLI flag or in the
  696. # configuration file, the default for the configuration path is the home path.
  697. #path.config: ${path.home}
  698.  
  699. # The data path for the beatname installation. This is the default base path
  700. # for all the files in which beatname needs to store its data. If not set by a
  701. # CLI flag or in the configuration file, the default for the data path is a data
  702. # subdirectory inside the home path.
  703. #path.data: ${path.home}/data
  704.  
  705. # The logs path for a beatname installation. This is the default location for
  706. # the Beat's log files. If not set by a CLI flag or in the configuration file,
  707. # the default for the logs path is a logs subdirectory inside the home path.
  708. #path.logs: ${path.home}/logs
  709.  
  710. #============================== Dashboards =====================================
  711. # These settings control loading the sample dashboards to the Kibana index. Loading
  712. # the dashboards are disabled by default and can be enabled either by setting the
  713. # options here, or by using the `-setup` CLI flag or the `setup` command.
  714. setup.dashboards.enabled: true
  715.  
  716. # The directory from where to read the dashboards. The default is the `kibana`
  717. # folder in the home path.
  718. #setup.dashboards.directory: ${path.home}/kibana
  719.  
  720. # The URL from where to download the dashboards archive. It is used instead of
  721. # the directory if it has a value.
  722. #setup.dashboards.url:
  723.  
  724. # The file archive (zip file) from where to read the dashboards. It is used instead
  725. # of the directory when it has a value.
  726. #setup.dashboards.file:
  727.  
  728. # In case the archive contains the dashboards from multiple Beats, this lets you
  729. # select which one to load. You can load all the dashboards in the archive by
  730. # setting this to the empty string.
  731. #setup.dashboards.beat: beatname
  732.  
  733. # The name of the Kibana index to use for setting the configuration. Default is ".kibana"
  734. #setup.dashboards.kibana_index: .kibana
  735.  
  736. # The Elasticsearch index name. This overwrites the index name defined in the
  737. # dashboards and index pattern. Example: testbeat-*
  738. #setup.dashboards.index: auditbeat-*
  739.  
  740. # Always use the Kibana API for loading the dashboards instead of autodetecting
  741. # how to install the dashboards by first querying Elasticsearch.
  742. #setup.dashboards.always_kibana: false
  743.  
  744. #============================== Template =====================================
  745.  
  746. # A template is used to set the mapping in Elasticsearch
  747. # By default template loading is enabled and the template is loaded.
  748. # These settings can be adjusted to load your own template or overwrite existing ones.
  749.  
  750. # Set to false to disable template loading.
  751. #setup.template.enabled: true
  752.  
  753. # Template name. By default the template name is "beat-index-prefix-%{[beat.version]}"
  754. # The template name and pattern has to be set in case the elasticsearch index pattern is modified.
  755. #setup.template.name: "beat-index-prefix-%{[beat.version]}"
  756.  
  757. # Template pattern. By default the template pattern is "-%{[beat.version]}-*" to apply to the default index settings.
  758. # The first part is the version of the beat and then -* is used to match all daily indices.
  759. # The template name and pattern has to be set in case the elasticsearch index pattern is modified.
  760. #setup.template.pattern: "beat-index-prefix-%{[beat.version]}-*"
  761.  
  762. # Path to fields.yml file to generate the template
  763. #setup.template.fields: "${path.config}/fields.yml"
  764.  
  765. # Overwrite existing template
  766. #setup.template.overwrite: false
  767.  
  768. # Elasticsearch template settings
  769. setup.template.settings:
  770.  
  771. # A dictionary of settings to place into the settings.index dictionary
  772. # of the Elasticsearch template. For more details, please check
  773. # https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html
  774. index:
  775. number_of_shards: 1
  776. #codec: best_compression
  777. #number_of_routing_shards: 30
  778.  
  779. # A dictionary of settings for the _source field. For more details, please check
  780. # https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-source-field.html
  781. #_source:
  782. #enabled: false
  783.  
  784. #============================== Kibana =====================================
  785.  
  786. # Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
  787. # This requires a Kibana endpoint configuration.
  788. setup.kibana:
  789.  
  790. # Kibana Host
  791. # Scheme and port can be left out and will be set to the default (http and 5601)
  792. # In case you specify and additional path, the scheme is required: http://localhost:5601/path
  793. # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
  794. host: "localhost:5601"
  795.  
  796. # Optional protocol and basic auth credentials.
  797. #protocol: "https"
  798. #username: "elastic"
  799. #password: "changeme"
  800.  
  801. # Optional HTTP Path
  802. #path: ""
  803.  
  804. # Use SSL settings for HTTPS. Default is true.
  805. #ssl.enabled: true
  806.  
  807. # Configure SSL verification mode. If `none` is configured, all server hosts
  808. # and certificates will be accepted. In this mode, SSL based connections are
  809. # susceptible to man-in-the-middle attacks. Use only for testing. Default is
  810. # `full`.
  811. #ssl.verification_mode: full
  812.  
  813. # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
  814. # 1.2 are enabled.
  815. #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
  816.  
  817. # SSL configuration. By default is off.
  818. # List of root certificates for HTTPS server verifications
  819. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  820.  
  821. # Certificate for SSL client authentication
  822. #ssl.certificate: "/etc/pki/client/cert.pem"
  823.  
  824. # Client Certificate Key
  825. #ssl.key: "/etc/pki/client/cert.key"
  826.  
  827. # Optional passphrase for decrypting the Certificate Key.
  828. #ssl.key_passphrase: ''
  829.  
  830. # Configure cipher suites to be used for SSL connections
  831. #ssl.cipher_suites: []
  832.  
  833. # Configure curve types for ECDHE based cipher suites
  834. #ssl.curve_types: []
  835.  
  836.  
  837.  
  838. #================================ Logging ======================================
  839. # There are four options for the log output: file, stderr, syslog, eventlog
  840. # The file output is the default.
  841.  
  842. # Sets log level. The default log level is info.
  843. # Available log levels are: error, warning, info, debug
  844. #logging.level: info
  845.  
  846. # Enable debug output for selected components. To enable all selectors use ["*"]
  847. # Other available selectors are "beat", "publish", "service"
  848. # Multiple selectors can be chained.
  849. #logging.selectors: [ ]
  850.  
  851. # Send all logging output to syslog. The default is false.
  852. #logging.to_syslog: false
  853.  
  854. # Send all logging output to Windows Event Logs. The default is false.
  855. #logging.to_eventlog: false
  856.  
  857. # If enabled, beatname periodically logs its internal metrics that have changed
  858. # in the last period. For each metric that changed, the delta from the value at
  859. # the beginning of the period is logged. Also, the total values for
  860. # all non-zero internal metrics are logged on shutdown. The default is true.
  861. #logging.metrics.enabled: true
  862.  
  863. # The period after which to log the internal metrics. The default is 30s.
  864. #logging.metrics.period: 30s
  865.  
  866. # Logging to rotating files. Set logging.to_files to false to disable logging to
  867. # files.
  868. logging.to_files: true
  869. logging.files:
  870. # Configure the path where the logs are written. The default is the logs directory
  871. # under the home path (the binary location).
  872. #path: /var/log/beatname
  873.  
  874. # The name of the files where the logs are written to.
  875. #name: beatname
  876.  
  877. # Configure log file size limit. If limit is reached, log file will be
  878. # automatically rotated
  879. #rotateeverybytes: 10485760 # = 10MB
  880.  
  881. # Number of rotated log files to keep. Oldest files will be deleted first.
  882. #keepfiles: 7
  883.  
  884. # The permissions mask to apply when rotating log files. The default value is 0600.
  885. # Must be a valid Unix-style file permissions mask expressed in octal notation.
  886. #permissions: 0600
  887.  
  888. # Set to true to log messages in json format.
  889. #logging.json: false
  890.  
  891.  
  892. #============================== Xpack Monitoring =====================================
  893. # beatname can export internal metrics to a central Elasticsearch monitoring cluster.
  894. # This requires xpack monitoring to be enabled in Elasticsearch.
  895. # The reporting is disabled by default.
  896.  
  897. # Set to true to enable the monitoring reporter.
  898. #xpack.monitoring.enabled: false
  899.  
  900. # Uncomment to send the metrics to Elasticsearch. Most settings from the
  901. # Elasticsearch output are accepted here as well. Any setting that is not set is
  902. # automatically inherited from the Elasticsearch output configuration, so if you
  903. # have the Elasticsearch output configured, you can simply uncomment the
  904. # following line, and leave the rest commented out.
  905. #xpack.monitoring.elasticsearch:
  906.  
  907. # Array of hosts to connect to.
  908. # Scheme and port can be left out and will be set to the default (http and 9200)
  909. # In case you specify and additional path, the scheme is required: http://localhost:9200/path
  910. # IPv6 addresses should always be defined as: https://[2001:db8::1]:9200
  911. #hosts: ["localhost:9200"]
  912.  
  913. # Set gzip compression level.
  914. #compression_level: 0
  915.  
  916. # Optional protocol and basic auth credentials.
  917. #protocol: "https"
  918. #username: "beats_system"
  919. #password: "changeme"
  920.  
  921. # Dictionary of HTTP parameters to pass within the url with index operations.
  922. #parameters:
  923. #param1: value1
  924. #param2: value2
  925.  
  926. # Custom HTTP headers to add to each request
  927. #headers:
  928. # X-My-Header: Contents of the header
  929.  
  930. # Proxy server url
  931. #proxy_url: http://proxy:3128
  932.  
  933. # The number of times a particular Elasticsearch index operation is attempted. If
  934. # the indexing operation doesn't succeed after this many retries, the events are
  935. # dropped. The default is 3.
  936. #max_retries: 3
  937.  
  938. # The maximum number of events to bulk in a single Elasticsearch bulk API index request.
  939. # The default is 50.
  940. #bulk_max_size: 50
  941.  
  942. # Configure http request timeout before failing an request to Elasticsearch.
  943. #timeout: 90
  944.  
  945. # Use SSL settings for HTTPS.
  946. #ssl.enabled: true
  947.  
  948. # Configure SSL verification mode. If `none` is configured, all server hosts
  949. # and certificates will be accepted. In this mode, SSL based connections are
  950. # susceptible to man-in-the-middle attacks. Use only for testing. Default is
  951. # `full`.
  952. #ssl.verification_mode: full
  953.  
  954. # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
  955. # 1.2 are enabled.
  956. #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
  957.  
  958. # SSL configuration. By default is off.
  959. # List of root certificates for HTTPS server verifications
  960. #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  961.  
  962. # Certificate for SSL client authentication
  963. #ssl.certificate: "/etc/pki/client/cert.pem"
  964.  
  965. # Client Certificate Key
  966. #ssl.key: "/etc/pki/client/cert.key"
  967.  
  968. # Optional passphrase for decrypting the Certificate Key.
  969. #ssl.key_passphrase: ''
  970.  
  971. # Configure cipher suites to be used for SSL connections
  972. #ssl.cipher_suites: []
  973.  
  974. # Configure curve types for ECDHE based cipher suites
  975. #ssl.curve_types: []
  976.  
  977. # Configure what types of renegotiation are supported. Valid options are
  978. # never, once, and freely. Default is never.
  979. #ssl.renegotiation: never
  980.  
  981. #================================ HTTP Endpoint ======================================
  982. # Each beat can expose internal metrics through a HTTP endpoint. For security
  983. # reasons the endpoint is disabled by default. This feature is currently experimental.
  984. # Stats can be access through http://localhost:5066/stats . For pretty JSON output
  985. # append ?pretty to the URL.
  986.  
  987. # Defines if the HTTP endpoint is enabled.
  988. #http.enabled: false
  989.  
  990. # The HTTP endpoint will bind to this hostname or IP address. It is recommended to use only localhost.
  991. #http.host: localhost
  992.  
  993. # Port on which the HTTP endpoint will bind. Default is 5066.
  994. #http.port: 5066
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement