-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initialize Journalbeat #8277
Initialize Journalbeat #8277
Changes from all commits
485ae50
9abf838
fca5ac8
c4600b0
f559751
4e5f157
ba0ffc3
9a0e7e7
f54fdd7
328457a
0797f16
fc29e7e
ff94b5d
e5308ed
61aa201
4d4f79d
7a01f63
c9e33db
cd1c0d6
457c5db
8d36860
1fc7a59
905f9fd
0f1f364
28c7916
171bd48
650e113
88e4a1f
88f039f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/.idea | ||
/build | ||
.DS_Store | ||
.journalbeat_position | ||
/journalbeat | ||
/journalbeat.test | ||
*.pyc | ||
data/meta.json | ||
/*.journal |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
BEAT_NAME=journalbeat | ||
BEAT_TITLE=Journalbeat | ||
SYSTEM_TESTS=false | ||
TEST_ENVIRONMENT=false | ||
ES_BEATS?=.. | ||
GOX_FLAGS=-cgo | ||
GOX_OS=linux | ||
|
||
# Path to the libbeat Makefile | ||
-include $(ES_BEATS)/libbeat/scripts/Makefile | ||
|
||
.PHONY: before-build | ||
before-build: | ||
|
||
# Collects all dependencies and then calls update | ||
.PHONY: collect | ||
collect: |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Journalbeat | ||
|
||
Journalbeat is an open source data collector to read and forward journal entries from Linuxes with systemd. | ||
|
||
## Getting started |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
###################### Journalbeat Configuration Example ######################### | ||
|
||
# This file is an example configuration file highlighting only the most common | ||
# options. The journalbeat.reference.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/journalbeat/index.html | ||
|
||
# For more available modules and options, please see the journalbeat.reference.yml sample | ||
# configuration file. | ||
|
||
#=========================== Journalbeat inputs ============================= | ||
|
||
journalbeat.inputs: | ||
# Paths that should be crawled and fetched. Possible values files and directories. | ||
# When setting a directory, all journals under it are merged. | ||
# When empty starts to read from local journal. | ||
- paths: [] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we make it clear that path must be a directly, maybe adding validation to make sure its a directory and not files? Coming from filebeat I thought it was a wildcard for files and I've used something like this:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In the YAML file, it's says glob are supported so I've tried with the following:
but I've received an error:
|
||
|
||
# The number of seconds to wait before trying to read again from journals. | ||
#backoff: 1s | ||
# Multiplier of backoff value. | ||
#backoff_factor: 2 | ||
# The maximum number of seconds to wait before attempting to read again from journals. | ||
#max_backoff: 60s | ||
|
||
# Position to start reading from journal. Valid values: head, tail, cursor | ||
seek: tail | ||
|
||
#========================= Journalbeat global options ============================ | ||
#journalbeat: | ||
# Name of the registry file. If a relative path is used, it is considered relative to the | ||
# data path. | ||
#registry_file: registry | ||
|
||
# The number of seconds to wait before trying to read again from journals. | ||
#backoff: 1s | ||
# Multiplier of backoff value. | ||
#backoff_factor: 2 | ||
# The maximum number of seconds to wait before attempting to read again from journals. | ||
#max_backoff: 60s | ||
|
||
# Position to start reading from all journal. Possible values: head, tail, cursor | ||
#seek: head |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a follow up issue or meta issue to make sure we add a Job in Jenkins for it in the near future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added one more element to the TODO list in the meta issue: #8323