-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add an `id` configuration option to the Journalbeat input to make it possible to start multiple inputs on the same journal. As an administrator this provides more flexibility in how you can deploy Journalbeat. It gives you the configuration grainularity you need to be able to have an input for each service or log type. You can apply different `include_matches` to each input. And you can easily add new log types at any point and make Journalbeat read all matching logs from the "head" without affecting existing input cursor positions. I also fixed a test that was modifying a file under source control by copying it into the build directory before applying changes. (cherry picked from commit 74a5bd2)
- Loading branch information
1 parent
11e3886
commit 98972eb
Showing
13 changed files
with
169 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,13 @@ | ||
################### Beat Configuration ######################### | ||
journalbeat.inputs: | ||
- paths: [{{ journal_path }}] | ||
seek: {{ seek_method }} | ||
{% if cursor_seek_fallback %} | ||
cursor_seek_fallback: {{ cursor_seek_fallback }} | ||
{% endif %} | ||
include_matches: [{{ matches }}] | ||
{% for input in inputs %} | ||
- {{ input | tojson }} | ||
{% endfor %} | ||
|
||
{% if registry_file is defined %} | ||
journalbeat.registry_file: {{ registry_file }} | ||
{% endif %} | ||
|
||
############################# Output ########################################## | ||
|
||
# Configure what outputs to use when sending the data collected by the beat. | ||
# You can enable one or multiple outputs by setting enabled option to true. | ||
output: | ||
|
||
### File as output | ||
file: | ||
# Enabling file output | ||
enabled: true | ||
|
||
# Path to the directory where to save the generated files. The option is mandatory. | ||
path: {{ output_file_path|default(beat.working_dir + "/output") }} | ||
|
||
|
||
# Name of the generated files. The default is `journalbeat` and it generates | ||
# files: `journalbeat`, `journalbeat.1`, `journalbeat.2`, etc. | ||
filename: {{ output_file_filename|default("journalbeat") }} | ||
|
||
# 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 | ||
|
||
|
||
|
||
############################# Beat ######################################### | ||
|
||
# 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. | ||
# If this options is not defined, the hostname is used. | ||
#name: | ||
|
||
# The tags of the shipper are included in their own field with each | ||
# transaction published. Tags make it easy to group servers by different | ||
# logical properties. | ||
#tags: ["service-X", "web-tier"] | ||
|
||
|
||
|
||
############################# Logging ######################################### | ||
|
||
#logging: | ||
# Send all logging output to syslog. On Windows default is false, otherwise | ||
# default is true. | ||
#to_syslog: true | ||
|
||
# Write all logging output to files. Beats automatically rotate files if configurable | ||
# limit is reached. | ||
#to_files: false | ||
|
||
# Enable debug output for selected components. | ||
#selectors: [] | ||
|
||
# Set log level | ||
#level: error | ||
|
||
#files: | ||
# The directory where the log files will written to. | ||
#path: /var/log/journalbeat | ||
|
||
# The name of the files where the logs are written to. | ||
#name: journalbeat | ||
|
||
# Configure log file size limit. If limit is reached, log file will be | ||
# automatically rotated | ||
#rotateeverybytes: 10485760 # = 10MB | ||
|
||
# Number of rotated log files to keep. Oldest files will be deleted first. | ||
#keepfiles: 7 |
Oops, something went wrong.