Advertisement
Guest User

Untitled

a guest
Oct 11th, 2016
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 26.03 KB | None | 0 0
  1. ########################## Metricbeat Configuration ###########################
  2.  
  3. # This file is a full configuration example documenting all non-deprecated
  4. # options in comments. For a shorter configuration example, that contains only
  5. # the most common options, please see metricbeat.yml in the same directory.
  6. #
  7. # You can find the full configuration reference here:
  8. # https://www.elastic.co/guide/en/beats/metricbeat/index.html
  9.  
  10. #==========================  Modules configuration ============================
  11. metricbeat.modules:
  12.  
  13. #------------------------------- System Module -------------------------------
  14. - module: system
  15.   metricsets:
  16.     # CPU stats
  17.     - cpu
  18.  
  19.     # System Load stats
  20.     - load
  21.  
  22.     # Per CPU core stats
  23.     #- core
  24.  
  25.     # IO stats
  26.     #- diskio
  27.  
  28.     # Per filesystem stats
  29.     - filesystem
  30.  
  31.     # File system summary stats
  32.     #- fsstat
  33.  
  34.     # Memory stats
  35.     - memory
  36.  
  37.     # Network stats
  38.     - network
  39.  
  40.     # Per process stats
  41.     - process
  42.   enabled: true
  43.   period: 10s
  44.   processes: ['.*']
  45.  
  46.   # if true, exports the CPU usage in ticks, together with the percentage values
  47.   #cpu_ticks: false
  48.  
  49.   # EXPERIMENTAL: cgroups can be enabled for the process metricset.
  50.   #cgroups: false
  51.  
  52. #------------------------------- Apache Module -------------------------------
  53. #- module: apache
  54.   #metricsets: ["status"]
  55.   #enabled: true
  56.   #period: 10s
  57.  
  58.   # Apache hosts
  59.   #hosts: ["http://127.0.0.1"]
  60.  
  61.   # Path to server status. Default server-status
  62.   #server_status_path: "server-status"
  63.  
  64.   # Username of hosts.  Empty by default
  65.   #username: test
  66.  
  67.   # Password of hosts. Empty by default
  68.   #password: test123
  69.  
  70. #------------------------------- haproxy Module ------------------------------
  71. #- module: haproxy
  72.   #metricsets: [stat, info]
  73.   #enabled: true
  74.   #period: 10s
  75.   #hosts: ['tcp://127.0.0.1:14567']
  76.  
  77. #------------------------------- MongoDB Module ------------------------------
  78. #- module: mongodb
  79.   #metricsets: ["status"]
  80.   #enabled: true
  81.   #period: 10s
  82.  
  83.   # The hosts must be passed as MongoDB URLs in the format:
  84.   # [mongodb://][user:pass@]host[:port]
  85.   #hosts: ["localhost:27017"]
  86.  
  87.  
  88. #-------------------------------- MySQL Module -------------------------------
  89. #- module: mysql
  90.   #metricsets: ["status"]
  91.   #enabled: true
  92.   #period: 10s
  93.  
  94.   # Host DSN should be defined as "tcp(127.0.0.1:3306)/"
  95.   # The username and password can either be set in the DSN or for all hosts in username and password config option
  96.   #hosts: ["root@tcp(127.0.0.1:3306)/"]
  97.  
  98.   # Username of hosts. Empty by default
  99.   #username: root
  100.  
  101.   # Password of hosts. Empty by default
  102.   #password: test
  103.  
  104. #-------------------------------- Nginx Module -------------------------------
  105. #- module: nginx
  106.   #metricsets: ["stubstatus"]
  107.   #enabled: true
  108.   #period: 10s
  109.  
  110.   # Nginx hosts
  111.   #hosts: ["http://127.0.0.1"]
  112.  
  113.   # Path to server status. Default server-status
  114.   #server_status_path: "server-status"
  115.  
  116. #----------------------------- PostgreSQL Module -----------------------------
  117. #- module: postgresql
  118.   #metricsets:
  119.     # Stats about every PostgreSQL database
  120.     #- database
  121.  
  122.     # Stats about the background writer process's activity
  123.     #- bgwriter
  124.  
  125.     # Stats about every PostgreSQL process
  126.     #- activity
  127.  
  128.   #enabled: true
  129.   #period: 10s
  130.  
  131.   # The host must be passed as PostgreSQL DSN. Example:
  132.   # postgres://pqgotest:password@localhost:5432?sslmode=disable
  133.   # The available parameters are documented here:
  134.   # https://godoc.org/github.com/lib/pq#hdr-Connection_String_Parameters
  135.   #hosts: ["postgres://postgres@localhost:5432"]
  136.  
  137.  
  138. #-------------------------------- Redis Module -------------------------------
  139. #- module: redis
  140.   #metricsets: ["info", "keyspace"]
  141.   #enabled: true
  142.   #period: 10s
  143.  
  144.   # Redis hosts
  145.   #hosts: ["127.0.0.1:6379"]
  146.  
  147.   # Enabled defines if the module is enabled. Default: true
  148.   #enabled: true
  149.  
  150.   # Timeout after which time a metricset should return an error
  151.   # Timeout is by default defined as period, as a fetch of a metricset
  152.   # should never take longer then period, as otherwise calls can pile up.
  153.   #timeout: 1s
  154.  
  155.   # Optional fields to be added to each event
  156.   #fields:
  157.   #  datacenter: west
  158.  
  159.   # Network type to be used for redis connection. Default: tcp
  160.   #network: tcp
  161.  
  162.   # Max number of concurrent connections. Default: 10
  163.   #maxconn: 10
  164.  
  165.   # Filters can be used to reduce the number of fields sent.
  166.   #filters:
  167.   #  - include_fields:
  168.   #      fields: ["stats"]
  169.  
  170.   # Redis AUTH password. Empty by default.
  171.   #password: foobared
  172.  
  173. #------------------------------ ZooKeeper Module -----------------------------
  174. #- module: zookeeper
  175.   #metricsets: ["mntr"]
  176.   #enabled: true
  177.   #period: 10s
  178.   #hosts: ["localhost:2181"]
  179.  
  180.  
  181.  
  182. #================================ General =====================================
  183.  
  184. # The name of the shipper that publishes the network data. It can be used to group
  185. # all the transactions sent by a single shipper in the web interface.
  186. # If this options is not defined, the hostname is used.
  187. #name:
  188.  
  189. # The tags of the shipper are included in their own field with each
  190. # transaction published. Tags make it easy to group servers by different
  191. # logical properties.
  192. #tags: ["service-X", "web-tier"]
  193.  
  194. # Optional fields that you can specify to add additional information to the
  195. # output. Fields can be scalar values, arrays, dictionaries, or any nested
  196. # combination of these.
  197. #fields:
  198. #  env: staging
  199.  
  200. # If this option is set to true, the custom fields are stored as top-level
  201. # fields in the output document instead of being grouped under a fields
  202. # sub-dictionary. Default is false.
  203. #fields_under_root: false
  204.  
  205. # Internal queue size for single events in processing pipeline
  206. #queue_size: 1000
  207.  
  208. # The internal queue size for bulk events in the processing pipeline.
  209. # Do not modify this value.
  210. #bulk_queue_size: 0
  211.  
  212. # Sets the maximum number of CPUs that can be executing simultaneously. The
  213. # default is the number of logical CPUs available in the system.
  214. #max_procs:
  215.  
  216. #================================ Processors =====================================
  217.  
  218. # Processors are used to reduce the number of fields in the exported event or to
  219. # enhance the event with external meta data. This section defines a list of processors
  220. # that are applied one by one and the first one receives the initial event:
  221. #
  222. #   event -> filter1 -> event1 -> filter2 ->event2 ...
  223. #
  224. # Supported processors: drop_fields, drop_event, include_fields
  225. #
  226. # For example, you can use the following processors to keep
  227. # the fields that contain CPU load percentages, but remove the fields that
  228. # contain CPU ticks values:
  229. #
  230. #processors:
  231. #- include_fields:
  232. #    fields: ["cpu"]
  233. #- drop_fields:
  234. #    fields: ["cpu.user", "cpu.system"]
  235. #
  236. # The following example drops the events that have the HTTP response code 200:
  237. #
  238. #processors:
  239. #- drop_event:
  240. #    when:
  241. #       equals:
  242. #           http.code: 200
  243. #
  244.  
  245. #================================ Outputs =====================================
  246.  
  247. # Configure what outputs to use when sending the data collected by the beat.
  248. # Multiple outputs may be used.
  249.  
  250. #-------------------------- Elasticsearch output ------------------------------
  251. #output.elasticsearch:
  252.   # Boolean flag to enable or disable the output module.
  253.   #enabled: true
  254.  
  255.   # Array of hosts to connect to.
  256.   # Scheme and port can be left out and will be set to the default (http and 9200)
  257.   # In case you specify and additional path, the scheme is required: http://localhost:9200/path
  258.   # IPv6 addresses should always be defined as: https://[2001:db8::1]:9200
  259.   #hosts: ["localhost:9200"]
  260.  
  261.   # Set gzip compression level.
  262.   #compression_level: 0
  263.  
  264.   # Optional protocol and basic auth credentials.
  265.   #protocol: "https"
  266.   #username: "elastic"
  267.   #password: "changeme"
  268.  
  269.   # Dictionary of HTTP parameters to pass within the url with index operations.
  270.   #parameters:
  271.     #param1: value1
  272.     #param2: value2
  273.  
  274.   # Number of workers per Elasticsearch host.
  275.   #worker: 1
  276.  
  277.   # Optional index name. The default is "metricbeat" plus date
  278.   # and generates [metricbeat-]YYYY.MM.DD keys.
  279.   #index: "metricbeat-%{+yyyy.MM.dd}"
  280.  
  281.   # Optional ingest node pipeline. By default no pipeline will be used.
  282.   #pipeline: ""
  283.  
  284.   # Optional HTTP Path
  285.   #path: "/elasticsearch"
  286.  
  287.   # Proxy server url
  288.   #proxy_url: http://proxy:3128
  289.  
  290.   # The number of times a particular Elasticsearch index operation is attempted. If
  291.   # the indexing operation doesn't succeed after this many retries, the events are
  292.   # dropped. The default is 3.
  293.   #max_retries: 3
  294.  
  295.   # The maximum number of events to bulk in a single Elasticsearch bulk API index request.
  296.   # The default is 50.
  297.   #bulk_max_size: 50
  298.  
  299.   # Configure http request timeout before failing an request to Elasticsearch.
  300.   #timeout: 90
  301.  
  302.   # The number of seconds to wait for new events between two bulk API index requests.
  303.   # If `bulk_max_size` is reached before this interval expires, addition bulk index
  304.   # requests are made.
  305.   #flush_interval: 1s
  306.  
  307.   # A template is used to set the mapping in Elasticsearch
  308.   # By default template loading is enabled and the template is loaded.
  309.   # These settings can be adjusted to load your own template or overwrite existing ones.
  310.  
  311.   # Set to false to disable template loading.
  312.   #template.enabled: true
  313.  
  314.   # Template name. By default the template name is metricbeat.
  315.   #template.name: "metricbeat"
  316.  
  317.   # Path to template file
  318.   #template.path: "${path.config}/metricbeat.template.json"
  319.  
  320.   # Overwrite existing template
  321.   #template.overwrite: false
  322.  
  323.   # If set to true, metricbeat checks the Elasticsearch version at connect time, and if it
  324.   # is 2.x, it loads the file specified by the template.versions.2x.path setting. The
  325.   # default is true.
  326.   #template.versions.2x.enabled: true
  327.  
  328.   # Path to the Elasticsearch 2.x version of the template file.
  329.   #template.versions.2x.path: "${path.config}/metricbeat.template-es2x.json"
  330.  
  331.   # Use SSL settings for HTTPS. Default is true.
  332.   #ssl.enabled: true
  333.  
  334.   # Configure SSL verification mode. If `none` is configured, all server hosts
  335.   # and certificates will be accepted. In this mode, SSL based connections are
  336.   # susceptible to man-in-the-middle attacks. Use only for testing. Default is
  337.   # `full`.
  338.   #ssl.verification_mode: full
  339.  
  340.   # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
  341.   # 1.2 are enabled.
  342.   #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
  343.  
  344.   # SSL configuration. By default is off.
  345.   # List of root certificates for HTTPS server verifications
  346.   #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  347.  
  348.   # Certificate for SSL client authentication
  349.   #ssl.certificate: "/etc/pki/client/cert.pem"
  350.  
  351.   # Client Certificate Key
  352.   #ssl.key: "/etc/pki/client/cert.key"
  353.  
  354.   # Optional passphrase for decrypting the Certificate Key.
  355.   #ssl.key_passphrase: ''
  356.  
  357.   # Configure cipher suites to be used for SSL connections
  358.   #ssl.cipher_suites: []
  359.  
  360.   # Configure curve types for ECDHE based cipher suites
  361.   #ssl.curve_types: []
  362.  
  363.  
  364. #----------------------------- Logstash output --------------------------------
  365. #output.logstash:
  366.   # Boolean flag to enable or disable the output module.
  367.   #enabled: true
  368.  
  369.   # The Logstash hosts
  370.   #hosts: ["localhost:5044"]
  371.  
  372.   # Number of workers per Logstash host.
  373.   #worker: 1
  374.  
  375.   # Set gzip compression level.
  376.   #compression_level: 3
  377.  
  378.   # Optional load balance the events between the Logstash hosts
  379.   #loadbalance: true
  380.  
  381.   # Number of batches to be send asynchronously to logstash while processing
  382.   # new batches.
  383.   #pipelining: 0
  384.  
  385.   # Optional index name. The default index name is set to name of the beat
  386.   # in all lowercase.
  387.   #index: 'metricbeat'
  388.  
  389.   # SOCKS5 proxy server URL
  390.   #proxy_url: socks5://user:password@socks5-server:2233
  391.  
  392.   # Resolve names locally when using a proxy server. Defaults to false.
  393.   #proxy_use_local_resolver: false
  394.  
  395.   # Enable SSL support. SSL is automatically enabled, if any SSL setting is set.
  396.   #ssl.enabled: true
  397.  
  398.   # Configure SSL verification mode. If `none` is configured, all server hosts
  399.   # and certificates will be accepted. In this mode, SSL based connections are
  400.   # susceptible to man-in-the-middle attacks. Use only for testing. Default is
  401.   # `full`.
  402.   #ssl.verification_mode: full
  403.  
  404.   # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
  405.   # 1.2 are enabled.
  406.   #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
  407.  
  408.   # Optional SSL configuration options. SSL is off by default.
  409.   # List of root certificates for HTTPS server verifications
  410.   #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  411.  
  412.   # Certificate for SSL client authentication
  413.   #ssl.certificate: "/etc/pki/client/cert.pem"
  414.  
  415.   # Client Certificate Key
  416.   #ssl.key: "/etc/pki/client/cert.key"
  417.  
  418.   # Optional passphrase for decrypting the Certificate Key.
  419.   #ssl.key_passphrase: ''
  420.  
  421.   # Configure cipher suites to be used for SSL connections
  422.   #ssl.cipher_suites: []
  423.  
  424.   # Configure curve types for ECDHE based cipher suites
  425.   #ssl.curve_types: []
  426.  
  427. #------------------------------- Kafka output ---------------------------------
  428. #output.kafka:
  429.   # Boolean flag to enable or disable the output module.
  430.   #enabled: true
  431.  
  432.   # The list of Kafka broker addresses from where to fetch the cluster metadata.
  433.   # The cluster metadata contain the actual Kafka brokers events are published
  434.   # to.
  435.   #hosts: ["localhost:9092"]
  436.  
  437.   # The Kafka topic used for produced events. The setting can be a format string
  438.   # using any event field. To set the topic from document type use `%{[type]}`.
  439.   #topic: beats
  440.  
  441.   # The Kafka event key setting. Use format string to create unique event key.
  442.   # By default no event key will be generated.
  443.   #key: ''
  444.  
  445.   # The Kafka event partitioning strategy. Default hashing strategy is `hash`
  446.   # using the `output.kafka.key` setting or randomly distributes events if
  447.   # `output.kafka.key` is not configured.
  448.   #partition.hash:
  449.     # If enabled, events will only be published to partitions with reachable
  450.     # leaders. Default is false.
  451.     #reachable_only: false
  452.  
  453.     # Configure alternative event field names used to compute the hash value.
  454.     # If empty `output.kafka.key` setting will be used.
  455.     # Default value is empty list.
  456.     #hash: []
  457.  
  458.   # Authentication details. Password is required if username is set.
  459.   #username: ''
  460.   #password: ''
  461.  
  462.   # Kafka version metricbeat is assumed to run against. Defaults to the oldest
  463.   # supported stable version (currently version 0.8.2.0)
  464.   #version: 0.8.2
  465.  
  466.   # Metadata update configuration. Metadata do contain leader information
  467.   # deciding which broker to use when publishing.
  468.   #metadata:
  469.     # Max metadata request retry attempts when cluster is in middle of leader
  470.     # election. Defaults to 3 retries.
  471.     #retry.max: 3
  472.  
  473.     # Waiting time between retries during leader elections. Default is 250ms.
  474.     #retry.backoff: 250ms
  475.  
  476.     # Refresh metadata interval. Defaults to every 10 minutes.
  477.     #refresh_frequency: 10m
  478.  
  479.   # The number of concurrent load-balanced Kafka output workers.
  480.   #worker: 1
  481.  
  482.   # The number of times to retry publishing an event after a publishing failure.
  483.   # After the specified number of retries, the events are typically dropped.
  484.   # Some Beats, such as Filebeat, ignore the max_retries setting and retry until
  485.   # all events are published.  Set max_retries to a value less than 0 to retry
  486.   # until all events are published. The default is 3.
  487.   #max_retries: 3
  488.  
  489.   # The maximum number of events to bulk in a single Kafka request. The default
  490.   # is 2048.
  491.   #bulk_max_size: 2048
  492.  
  493.   # The number of seconds to wait for responses from the Kafka brokers before
  494.   # timing out. The default is 30s.
  495.   #timeout: 30s
  496.  
  497.   # The maximum duration a broker will wait for number of required ACKs. The
  498.   # default is 10s.
  499.   #broker_timeout: 10s
  500.  
  501.   # The number of messages buffered for each Kafka broker. The default is 256.
  502.   #channel_buffer_size: 256
  503.  
  504.   # The keep-alive period for an active network connection. If 0s, keep-alives
  505.   # are disabled. The default is 0 seconds.
  506.   #keep_alive: 0
  507.  
  508.   # Sets the output compression codec. Must be one of none, snappy and gzip. The
  509.   # default is gzip.
  510.   #compression: gzip
  511.  
  512.   # The maximum permitted size of JSON-encoded messages. Bigger messages will be
  513.   # dropped. The default value is 1000000 (bytes). This value should be equal to
  514.   # or less than the broker's message.max.bytes.
  515.   #max_message_bytes: 1000000
  516.  
  517.   # The ACK reliability level required from broker. 0=no response, 1=wait for
  518.   # local commit, -1=wait for all replicas to commit. The default is 1.  Note:
  519.   # If set to 0, no ACKs are returned by Kafka. Messages might be lost silently
  520.   # on error.
  521.   #required_acks: 1
  522.  
  523.   # The number of seconds to wait for new events between two producer API calls.
  524.   #flush_interval: 1s
  525.  
  526.   # The configurable ClientID used for logging, debugging, and auditing
  527.   # purposes.  The default is "beats".
  528.   #client_id: beats
  529.  
  530.   # Enable SSL support. SSL is automatically enabled, if any SSL setting is set.
  531.   #ssl.enabled: true
  532.  
  533.   # Optional SSL configuration options. SSL is off by default.
  534.   # List of root certificates for HTTPS server verifications
  535.   #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  536.  
  537.   # Configure SSL verification mode. If `none` is configured, all server ihosts
  538.   # and certificates will be accepted. In this mode, SSL based connections are
  539.   # susceptible to man-in-the-middle attacks. Use only for testing. Default is
  540.   # `full`.
  541.   #ssl.verification_mode: full
  542.  
  543.   # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
  544.   # 1.2 are enabled.
  545.   #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
  546.  
  547.   # Certificate for SSL client authentication
  548.   #ssl.certificate: "/etc/pki/client/cert.pem"
  549.  
  550.   # Client Certificate Key
  551.   #ssl.key: "/etc/pki/client/cert.key"
  552.  
  553.   # Optional passphrase for decrypting the Certificate Key.
  554.   #ssl.key_passphrase: ''
  555.  
  556.   # Configure cipher suites to be used for SSL connections
  557.   #ssl.cipher_suites: []
  558.  
  559.   # Configure curve types for ECDHE based cipher suites
  560.   #ssl.curve_types: []
  561.  
  562. #------------------------------- Redis output ---------------------------------
  563. output.redis:
  564.   # Boolean flag to enable or disable the output module.
  565.   enabled: true
  566.  
  567.   # The list of Redis servers to connect to. If load balancing is enabled, the
  568.   # events are distributed to the servers in the list. If one server becomes
  569.   # unreachable, the events are distributed to the reachable servers only.
  570.   hosts: ["172.27.30.102:6379"]
  571.  
  572.   # The Redis port to use if hosts does not contain a port number. The default
  573.   # is 6379.
  574.   port: 6379
  575.  
  576.   # The name of the Redis list or channel the events are published to. The
  577.   # default is metricbeat.
  578.   key: metricbeat
  579.  
  580.   # The password to authenticate with. The default is no authentication.
  581.   #password:
  582.  
  583.   # The Redis database number where the events are published. The default is 0.
  584.   #db: 0
  585.  
  586.   # The Redis data type to use for publishing events. If the data type is list,
  587.   # the Redis RPUSH command is used. If the data type is channel, the Redis
  588.   # PUBLISH command is used. The default value is list.
  589.   #datetype: list
  590.  
  591.   # The number of workers to use for each host configured to publish events to
  592.   # Redis. Use this setting along with the loadbalance option. For example, if
  593.   # you have 2 hosts and 3 workers, in total 6 workers are started (3 for each
  594.   # host).
  595.   #worker: 1
  596.  
  597.   # If set to true and multiple hosts or workers are configured, the output
  598.   # plugin load balances published events onto all Redis hosts. If set to false,
  599.   # the output plugin sends all events to only one host (determined at random)
  600.   # and will switch to another host if the currently selected one becomes
  601.   # unreachable. The default value is true.
  602.   #loadbalance: true
  603.  
  604.   # The Redis connection timeout in seconds. The default is 5 seconds.
  605.   timeout: 60s
  606.  
  607.   # The number of times to retry publishing an event after a publishing failure.
  608.   # After the specified number of retries, the events are typically dropped.
  609.   # Some Beats, such as Filebeat, ignore the max_retries setting and retry until
  610.   # all events are published. Set max_retries to a value less than 0 to retry
  611.   # until all events are published. The default is 3.
  612.   #max_retries: 3
  613.  
  614.   # The maximum number of events to bulk in a single Redis request or pipeline.
  615.   # The default is 2048.
  616.   #bulk_max_size: 2048
  617.  
  618.   # The URL of the SOCKS5 proxy to use when connecting to the Redis servers. The
  619.   # value must be a URL with a scheme of socks5://.
  620.   #proxy_url:
  621.  
  622.   # This option determines whether Redis hostnames are resolved locally when
  623.   # using a proxy. The default value is false, which means that name resolution
  624.   # occurs on the proxy server.
  625.   #proxy_use_local_resolver: false
  626.  
  627.   # Enable SSL support. SSL is automatically enabled, if any SSL setting is set.
  628.   #ssl.enabled: true
  629.  
  630.   # Configure SSL verification mode. If `none` is configured, all server hosts
  631.   # and certificates will be accepted. In this mode, SSL based connections are
  632.   # susceptible to man-in-the-middle attacks. Use only for testing. Default is
  633.   # `full`.
  634.   #ssl.verification_mode: full
  635.  
  636.   # List of supported/valid TLS versions. By default all TLS versions 1.0 up to
  637.   # 1.2 are enabled.
  638.   #ssl.supported_protocols: [TLSv1.0, TLSv1.1, TLSv1.2]
  639.  
  640.   # Optional SSL configuration options. SSL is off by default.
  641.   # List of root certificates for HTTPS server verifications
  642.   #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]
  643.  
  644.   # Certificate for SSL client authentication
  645.   #ssl.certificate: "/etc/pki/client/cert.pem"
  646.  
  647.   # Client Certificate Key
  648.   #ssl.key: "/etc/pki/client/cert.key"
  649.  
  650.   # Optional passphrase for decrypting the Certificate Key.
  651.   #ssl.key_passphrase: ''
  652.  
  653.   # Configure cipher suites to be used for SSL connections
  654.   #ssl.cipher_suites: []
  655.  
  656.   # Configure curve types for ECDHE based cipher suites
  657.   #ssl.curve_types: []
  658.  
  659.  
  660. #------------------------------- File output ----------------------------------
  661. #output.file:
  662.   # Boolean flag to enable or disable the output module.
  663.   #enabled: true
  664.  
  665.   # Path to the directory where to save the generated files. The option is
  666.   # mandatory.
  667.   #path: "/tmp/metricbeat"
  668.  
  669.   # Name of the generated files. The default is `metricbeat` and it generates
  670.   # files: `metricbeat`, `metricbeat.1`, `metricbeat.2`, etc.
  671.   #filename: metricbeat
  672.  
  673.   # Maximum size in kilobytes of each file. When this size is reached, and on
  674.   # every metricbeat restart, the files are rotated. The default value is 10240
  675.   # kB.
  676.   #rotate_every_kb: 10000
  677.  
  678.   # Maximum number of files under path. When this number of files is reached,
  679.   # the oldest file is deleted and the rest are shifted from last to first. The
  680.   # default is 7 files.
  681.   #number_of_files: 7
  682.  
  683.  
  684. #----------------------------- Console output ---------------------------------
  685. #output.console:
  686.   # Boolean flag to enable or disable the output module.
  687.   #enabled: true
  688.  
  689.   # Pretty print json event
  690.   #pretty: false
  691.  
  692. #================================= Paths ======================================
  693.  
  694. # The home path for the metricbeat installation. This is the default base path
  695. # for all other path settings and for miscellaneous files that come with the
  696. # distribution (for example, the sample dashboards).
  697. # If not set by a CLI flag or in the configuration file, the default for the
  698. # home path is the location of the binary.
  699. #path.home:
  700.  
  701. # The configuration path for the metricbeat installation. This is the default
  702. # base path for configuration files, including the main YAML configuration file
  703. # and the Elasticsearch template file. If not set by a CLI flag or in the
  704. # configuration file, the default for the configuration path is the home path.
  705. #path.config: ${path.home}
  706.  
  707. # The data path for the metricbeat installation. This is the default base path
  708. # for all the files in which metricbeat needs to store its data. If not set by a
  709. # CLI flag or in the configuration file, the default for the data path is a data
  710. # subdirectory inside the home path.
  711. #path.data: ${path.home}/data
  712.  
  713. # The logs path for a metricbeat installation. This is the default location for
  714. # the Beat's log files. If not set by a CLI flag or in the configuration file,
  715. # the default for the logs path is a logs subdirectory inside the home path.
  716. #path.logs: ${path.home}/logs
  717.  
  718. #================================ Logging =====================================
  719. # There are three options for the log output: syslog, file, stderr.
  720. # Under Windows systems, the log files are per default sent to the file output,
  721. # under all other system per default to syslog.
  722.  
  723. # Sets log level. The default log level is info.
  724. # Available log levels are: critical, error, warning, info, debug
  725. #logging.level: info
  726.  
  727. # Enable debug output for selected components. To enable all selectors use ["*"]
  728. # Other available selectors are "beat", "publish", "service"
  729. # Multiple selectors can be chained.
  730. #logging.selectors: [ ]
  731.  
  732. # Send all logging output to syslog. The default is false.
  733. #logging.to_syslog: true
  734.  
  735. # If enabled, metricbeat periodically logs its internal metrics that have changed
  736. # in the last period. For each metric that changed, the delta from the value at
  737. # the beginning of the period is logged. Also, the total values for
  738. # all non-zero internal metrics are logged on shutdown. The default is true.
  739. #logging.metrics.enabled: true
  740.  
  741. # The period after which to log the internal metrics. The default is 30s.
  742. #logging.metrics.period: 30s
  743.  
  744. # Logging to rotating files files. Set logging.to_files to false to disable logging to
  745. # files.
  746. logging.to_files: true
  747. logging.files:
  748.   # Configure the path where the logs are written. The default is the logs directory
  749.   # under the home path (the binary location).
  750.   #path: /var/log/metricbeat
  751.  
  752.   # The name of the files where the logs are written to.
  753.   #name: metricbeat
  754.  
  755.   # Configure log file size limit. If limit is reached, log file will be
  756.   # automatically rotated
  757.   #rotateeverybytes: 10485760 # = 10MB
  758.  
  759.   # Number of rotated log files to keep. Oldest files will be deleted first.
  760.   #keepfiles: 7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement