-
Notifications
You must be signed in to change notification settings - Fork 2
/
yapdnsbeat.yml
129 lines (94 loc) · 4.66 KB
/
yapdnsbeat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
###################### YapdnsBeat Configuration Example #########################
# This file is an example configuration file highlighting only the most common
# options. The yapdnsbeat.full.yml file from the same directory contains all the
# supported options with more comments. You can use it as a reference.
#
# You can find the full configuration reference here:
# https://www.elastic.co/guide/en/beats/yapdnsbeat/index.html
#=========================== YapdnsBeat prospectors =============================
yapdnsbeat.prospectors:
# Each - is a prospector. Most options can be set at the prospector level, so
# you can use different prospectors for various configurations.
# Below are the prospector specific configurations.
- input_type: log
# Paths that should be crawled and fetched. Glob based paths.
paths:
- foo.log
#- c:\programdata\elasticsearch\logs\*
# A regex used to parse the DNS record from log message, named group matches map to record fields.
# The regex must have the following named groups - `domain`, `rdata` and optionally `rtype` and `ttl`.
pattern: (?P<domain>\d+)\.(\d+).(?P<rdata>\d+)
# Exclude lines. A list of regular expressions to match. It drops the lines that are
# matching any regular expression from the list.
#exclude_lines: ["^DBG"]
# Include lines. A list of regular expressions to match. It exports the lines that are
# matching any regular expression from the list.
#include_lines: ["^ERR", "^WARN"]
# Exclude files. A list of regular expressions to match. YapdnsBeat drops the files that
# are matching any regular expression from the list. By default, no files are dropped.
#exclude_files: [".gz$"]
# Optional additional fields. These field can be freely picked
# to add additional information to the crawled log files for filtering
#fields:
# level: debug
# review: 1
### Multiline options
# Mutiline can be used for log messages spanning multiple lines. This is common
# for Java Stack Traces or C-Line Continuation
# The regexp Pattern that has to be matched. The example pattern matches all lines starting with [
#multiline.pattern: ^\[
# Defines if the pattern set under pattern should be negated or not. Default is false.
#multiline.negate: false
# Match can be set to "after" or "before". It is used to define if lines should be append to a pattern
# that was (not) matched before or after or as long as a pattern is not matched based on negate.
# Note: After is the equivalent to previous and before is the equivalent to to next in Logstash
#multiline.match: after
#================================ General =====================================
# The name of the shipper that publishes the network data. It can be used to group
# all the transactions sent by a single shipper in the web interface.
#name:
# The tags of the shipper are included in their own field with each
# transaction published.
#tags: ["service-X", "web-tier"]
# Optional fields that you can specify to add additional information to the
# output.
#fields:
# env: staging
#================================ Outputs =====================================
# Configure what outputs to use when sending the data collected by the beat.
# Multiple outputs may be used.
# Output plugin that uses HTTP Authentication and does a POST on the api_endpoint and bulk_api_endpoint
# Used for publishing data to YAPDNS Backend - update api endpoints
output.http:
client_id: 'foo'
client_secret_key: 'foo'
api_endpoint: http://localhost:5050/
bulk_api_endpoint: http://localhost:5050/bulk
# Useful for testing
# output.console:
# pretty: true
#-------------------------- Elasticsearch output ------------------------------
# output.elasticsearch:
# # Array of hosts to connect to.
# hosts: ["localhost:9200"]
# # Template name. By default the template name is yapdnsbeat.
# template.name: "yapdnsbeat"
# # Path to template file
# template.path: "yapdnsbeat.template.json"
# # Overwrite existing template
# template.overwrite: false
#----------------------------- Logstash output --------------------------------
#output.logstash:
# The Logstash hosts
#hosts: ["localhost:5044"]
# Optional TLS. By default is off.
# List of root certificates for HTTPS server verifications
#tls.certificate_authorities: ["/etc/pki/root/ca.pem"]
# Certificate for TLS client authentication
#tls.certificate: "/etc/pki/client/cert.pem"
# Client Certificate Key
#tls.certificate_key: "/etc/pki/client/cert.key"
#================================ Logging =====================================
# Sets log level. The default log level is error.
# Available log levels are: critical, error, warning, info, debug
# logging.level: debug