Skip to content

Commit

Permalink
Merge branch 'master' of github.com:sematext/logagent-js
Browse files Browse the repository at this point in the history
  • Loading branch information
megastef committed Nov 26, 2019
2 parents 5c9eb84 + 4b7f016 commit 3cf33fa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
15 changes: 9 additions & 6 deletions config/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,17 +244,20 @@ input:
# Run any command and process the command output as log lines - very powerful!
# Documentation: https://sematext.com/docs/logagent/input-plugin-journald-upload/
##############################################
# JOURNALD VIA COMMAND INPUT
# Collect journald logs from the local server
# COMMAND INPUT
# Example: Collect journald logs from the local server
##############################################
#
#journald-json:
# module: command
# command: journalctl -o json -f
# sourceName: journald
# # time in seconds to repeat the command
# restart: -1
#
# # restart: <N> restarts the command N seconds after termination of the command
# # -1 means NO restart when the command terminates
# # 0 immediate restart
# # N values with N > 0 run a command periodically every N seconds
# restart: 0 # restart the command immediatly after termination

###########################################
# BRO / ZEEK IDS LOGS VIA COMMAND INPUT
# We start bro program, but we collect logs from /var/log/bro via file-input in this case!
Expand Down Expand Up @@ -1066,4 +1069,4 @@ output:
# - system\.log
# - access\.log
# - auth\.log


7 changes: 6 additions & 1 deletion config/examples/journald-elasticsearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ input:
module: command
command: journalctl -o json -f
sourceName: journald
restart: -1
# restart: <N> restarts the command N seconds after termination of the command
# -1 run only once, means NO restart when the command terminates
# 0 restart immediatly
# N values with N > 0 run the command periodically every N seconds
restart: 0 # restart the command immediatly

output:
elk-local:
module: elasticsearch
url: http://localhost:9200
# url: https://logsene-receiver.sematext.com/YOUR_LOGS_TOKEN
index: journald_logs

parser:
Expand Down

0 comments on commit 3cf33fa

Please sign in to comment.