Sidehistorik
...
Kodeblok |
---|
# Configure what outputs to use when sending the data collected by the beat. # Multiple outputs may be used. output: ... ... ### File as output file: # Path to the directory where to save the generated files. The option is mandatory. path: "/tmp/topbeat" # Name of the generated files. The default is `topbeat` and it generates files: `topbeat`, `topbeat.1`, `topbeat.2`, etc. filename: topbeat # Maximum size in kilobytes of each file. When this size is reached, the files are # rotated. The default value is 10 MB. rotate_every_kb: 10000 # Maximum number of files under path. When this number of files is reached, the # oldest file is deleted and the rest are shifted from last to first. The default # is 7 files. number_of_files: 7 |
Kodeblok | ||
---|---|---|
| ||
# Configure what outputs to use when sending the data collected by the beat.
# Multiple outputs may be used.
output:
...
...
### File as output
file:
# Path to the directory where to save the generated files. The option is mandatory.
path: "/tmp/topbeat"
# Name of the generated files. The default is `topbeat` and it generates files: `topbeat`, `topbeat.1`, `topbeat.2`, etc.
filename: topbeat
# Maximum size in kilobytes of each file. When this size is reached, the files are
# rotated. The default value is 10 MB.
rotate_every_kb: 10000
# Maximum number of files under path. When this number of files is reached, the
# oldest file is deleted and the rest are shifted from last to first. The default
# is 7 files.
number_of_files: 7 |
Then add, the file to splunk input.conf:
...
These baby's log a lot of data... so I configure the sample rate for topbeat (can be done for packetbeat), and change it from 10 to 60 seconds:
Kodeblok | ||
---|---|---|
| ||
input: # In seconds, defines how often to read server statistics period: 10 |
...