|
14 | 14 |
|
15 | 15 | filebeat.prospectors: |
16 | 16 |
|
17 | | -# Each - is a prospector. Most options can be set at the prospector level, so |
18 | | -# you can use different prospectors for various configurations. |
19 | | -# Below are the prospector specific configurations. |
| 17 | + # Each - is a prospector. Most options can be set at the prospector level, so |
| 18 | + # you can use different prospectors for various configurations. |
| 19 | + # Below are the prospector specific configurations. |
20 | 20 |
|
21 | | -- type: log |
| 21 | + - type: log |
22 | 22 |
|
23 | | - # Change to true to enable this prospector configuration. |
24 | | - enabled: true |
| 23 | + # Change to true to enable this prospector configuration. |
| 24 | + enabled: true |
25 | 25 |
|
26 | | - # Paths that should be crawled and fetched. Glob based paths. |
27 | | - paths: |
28 | | - #- /var/log/*.log |
29 | | - #- c:\programdata\elasticsearch\logs\* |
30 | | - - /home/zp/log/*.log |
| 26 | + # Paths that should be crawled and fetched. Glob based paths. |
| 27 | + paths: |
| 28 | + #- /var/log/*.log |
| 29 | + #- c:\programdata\elasticsearch\logs\* |
| 30 | + - /home/zp/log/*.log |
31 | 31 |
|
32 | | - # Exclude lines. A list of regular expressions to match. It drops the lines that are |
33 | | - # matching any regular expression from the list. |
34 | | - #exclude_lines: ['^DBG'] |
| 32 | + # Exclude lines. A list of regular expressions to match. It drops the lines that are |
| 33 | + # matching any regular expression from the list. |
| 34 | + #exclude_lines: ['^DBG'] |
35 | 35 |
|
36 | | - # Include lines. A list of regular expressions to match. It exports the lines that are |
37 | | - # matching any regular expression from the list. |
38 | | - #include_lines: ['^ERR', '^WARN'] |
| 36 | + # Include lines. A list of regular expressions to match. It exports the lines that are |
| 37 | + # matching any regular expression from the list. |
| 38 | + #include_lines: ['^ERR', '^WARN'] |
39 | 39 |
|
40 | | - # Exclude files. A list of regular expressions to match. Filebeat drops the files that |
41 | | - # are matching any regular expression from the list. By default, no files are dropped. |
42 | | - #exclude_files: ['.gz$'] |
| 40 | + # Exclude files. A list of regular expressions to match. Filebeat drops the files that |
| 41 | + # are matching any regular expression from the list. By default, no files are dropped. |
| 42 | + #exclude_files: ['.gz$'] |
43 | 43 |
|
44 | | - # Optional additional fields. These fields can be freely picked |
45 | | - # to add additional information to the crawled log files for filtering |
46 | | - #fields: |
47 | | - # level: debug |
48 | | - # review: 1 |
| 44 | + # Optional additional fields. These fields can be freely picked |
| 45 | + # to add additional information to the crawled log files for filtering |
| 46 | + #fields: |
| 47 | + # level: debug |
| 48 | + # review: 1 |
49 | 49 |
|
50 | | - ### Multiline options |
| 50 | + ### Multiline options |
51 | 51 |
|
52 | | - # Mutiline can be used for log messages spanning multiple lines. This is common |
53 | | - # for Java Stack Traces or C-Line Continuation |
| 52 | + # Mutiline can be used for log messages spanning multiple lines. This is common |
| 53 | + # for Java Stack Traces or C-Line Continuation |
54 | 54 |
|
55 | | - # The regexp Pattern that has to be matched. The example pattern matches all lines starting with [ |
56 | | - #multiline.pattern: ^\[ |
| 55 | + # The regexp Pattern that has to be matched. The example pattern matches all lines starting with [ |
| 56 | + #multiline.pattern: ^\[ |
57 | 57 |
|
58 | | - # Defines if the pattern set under pattern should be negated or not. Default is false. |
59 | | - #multiline.negate: false |
| 58 | + # Defines if the pattern set under pattern should be negated or not. Default is false. |
| 59 | + #multiline.negate: false |
60 | 60 |
|
61 | | - # Match can be set to "after" or "before". It is used to define if lines should be append to a pattern |
62 | | - # that was (not) matched before or after or as long as a pattern is not matched based on negate. |
63 | | - # Note: After is the equivalent to previous and before is the equivalent to to next in Logstash |
64 | | - #multiline.match: after |
| 61 | + # Match can be set to "after" or "before". It is used to define if lines should be append to a pattern |
| 62 | + # that was (not) matched before or after or as long as a pattern is not matched based on negate. |
| 63 | + # Note: After is the equivalent to previous and before is the equivalent to to next in Logstash |
| 64 | + #multiline.match: after |
65 | 65 |
|
66 | 66 |
|
67 | 67 | #============================= Filebeat modules =============================== |
@@ -123,25 +123,25 @@ setup.kibana: |
123 | 123 | # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601 |
124 | 124 | host: "192.168.28.11:5601" |
125 | 125 |
|
126 | | -#============================= Elastic Cloud ================================== |
| 126 | + #============================= Elastic Cloud ================================== |
127 | 127 |
|
128 | | -# These settings simplify using filebeat with the Elastic Cloud (https://cloud.elastic.co/). |
| 128 | + # These settings simplify using filebeat with the Elastic Cloud (https://cloud.elastic.co/). |
129 | 129 |
|
130 | | -# The cloud.id setting overwrites the `output.elasticsearch.hosts` and |
131 | | -# `setup.kibana.host` options. |
132 | | -# You can find the `cloud.id` in the Elastic Cloud web UI. |
133 | | -#cloud.id: |
| 130 | + # The cloud.id setting overwrites the `output.elasticsearch.hosts` and |
| 131 | + # `setup.kibana.host` options. |
| 132 | + # You can find the `cloud.id` in the Elastic Cloud web UI. |
| 133 | + #cloud.id: |
134 | 134 |
|
135 | | -# The cloud.auth setting overwrites the `output.elasticsearch.username` and |
136 | | -# `output.elasticsearch.password` settings. The format is `<user>:<pass>`. |
137 | | -#cloud.auth: |
| 135 | + # The cloud.auth setting overwrites the `output.elasticsearch.username` and |
| 136 | + # `output.elasticsearch.password` settings. The format is `<user>:<pass>`. |
| 137 | + #cloud.auth: |
138 | 138 |
|
139 | | -#================================ Outputs ===================================== |
| 139 | + #================================ Outputs ===================================== |
140 | 140 |
|
141 | | -# Configure what output to use when sending the data collected by the beat. |
| 141 | + # Configure what output to use when sending the data collected by the beat. |
142 | 142 |
|
143 | | -#-------------------------- Elasticsearch output ------------------------------ |
144 | | -#output.elasticsearch: |
| 143 | + #-------------------------- Elasticsearch output ------------------------------ |
| 144 | + #output.elasticsearch: |
145 | 145 | # Array of hosts to connect to. |
146 | 146 | #hosts: ["192.168.28.11:9200"] |
147 | 147 |
|
|
0 commit comments