rsyslog for arms
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
# vim: ft=yaml
|
# vim: ft=yaml
|
||||||
---
|
---
|
||||||
|
|
||||||
include:
|
#include:
|
||||||
- log.rsyslog.client
|
# - .log.rsyslog.client
|
||||||
- sys.sysctl
|
# - .sys.sysctl
|
||||||
- kubernetes
|
|
||||||
|
|||||||
@@ -3,35 +3,45 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
rsyslog:
|
rsyslog:
|
||||||
target: 192.168.10.2 # omit if you do not want to forward logs
|
client:
|
||||||
# NOTE: be careful using target and listen on
|
enabled: true
|
||||||
# the same server, you can cause a loop
|
run_user: root
|
||||||
#targets: # If you want to use more than one target,
|
run_group: adm
|
||||||
# - log1.example.com # you can specify targets as a list.
|
output:
|
||||||
# - log2.example.com # The single 'target' directive takes precendence over this however.
|
remote:
|
||||||
|
log.chaos:
|
||||||
protocol: udp # protocol to use to send to target
|
action: '@log.chaos'
|
||||||
listentcp: false # omit to disable listening on tcp port
|
filter: "*.*"
|
||||||
listentcpprt: 10514 # specify tcp listen port ($InputTCPServerRun)
|
enabled: true
|
||||||
listenudp: false # omit to disable listening on udp port
|
# target: 192.168.10.2 # omit if you do not want to forward logs
|
||||||
impstats: false # impstats set to true to enable impstats
|
# # NOTE: be careful using target and listen on
|
||||||
impstatsinterval: 600 # impstats interval to gather stats
|
# # the same server, you can cause a loop
|
||||||
impstatsseverity: 6 # The numerical syslog severity code to be used for generated messages. Default is 6(info)
|
# #targets: # If you want to use more than one target,
|
||||||
impstatsresetcounters: 'on' # When set to “on”, counters are automatically reset after they are emitted
|
# # - log1.example.com # you can specify targets as a list.
|
||||||
impstatslogsyslog: 'on' # This is a boolean setting specifying if data should be sent to the usual syslog stream
|
# # - log2.example.com # The single 'target' directive takes precendence over this however.
|
||||||
impstatsformat: legacy # Impstats format. Legacy is default but other options can be used.
|
#
|
||||||
impstatssyslogrule: 'syslog.=debug /var/log/rsyslog-stats' # Impstats log rule.
|
# protocol: udp # protocol to use to send to target
|
||||||
imkllog: true # omit to log kernel messages
|
# listentcp: false # omit to disable listening on tcp port
|
||||||
imjournal: false # omit to log journal messages
|
# listentcpprt: 10514 # specify tcp listen port ($InputTCPServerRun)
|
||||||
immark: false # enable/disable mark messages support
|
# listenudp: false # omit to disable listening on udp port
|
||||||
markmessageperiod: 1200 # Specifies when mark messages are written (seconds)
|
# impstats: false # impstats set to true to enable impstats
|
||||||
#logbasepath: /mnt/logs # base path for logs to be saved to
|
# impstatsinterval: 600 # impstats interval to gather stats
|
||||||
# also enables logging per host, per day
|
# impstatsseverity: 6 # The numerical syslog severity code to be used for generated messages. Default is 6(info)
|
||||||
fileowner: root # set the owner of the logfiles
|
# impstatsresetcounters: 'on' # When set to “on”, counters are automatically reset after they are emitted
|
||||||
filegroup: adm # set the group of the logfiles
|
# impstatslogsyslog: 'on' # This is a boolean setting specifying if data should be sent to the usual syslog stream
|
||||||
filemode: '0640' # mode for created log files
|
# impstatsformat: legacy # Impstats format. Legacy is default but other options can be used.
|
||||||
dirmode: '0755' # mode for dirs created in log file paths
|
# impstatssyslogrule: 'syslog.=debug /var/log/rsyslog-stats' # Impstats log rule.
|
||||||
template: 'RSYSLOG_FileFormat' # file default template
|
# imkllog: true # omit to log kernel messages
|
||||||
|
# imjournal: false # omit to log journal messages
|
||||||
|
# immark: false # enable/disable mark messages support
|
||||||
|
# markmessageperiod: 1200 # Specifies when mark messages are written (seconds)
|
||||||
|
# #logbasepath: /mnt/logs # base path for logs to be saved to
|
||||||
|
# # also enables logging per host, per day
|
||||||
|
# fileowner: root # set the owner of the logfiles
|
||||||
|
# filegroup: adm # set the group of the logfiles
|
||||||
|
# filemode: '0640' # mode for created log files
|
||||||
|
# dirmode: '0755' # mode for dirs created in log file paths
|
||||||
|
# template: 'RSYSLOG_FileFormat' # file default template
|
||||||
|
|
||||||
#custom: # Put custom config files in /etc/rsyslog.d/.
|
#custom: # Put custom config files in /etc/rsyslog.d/.
|
||||||
# - 001_custom1.conf # Files must be reachable from path `salt://rsyslog/`
|
# - 001_custom1.conf # Files must be reachable from path `salt://rsyslog/`
|
||||||
|
|||||||
@@ -36,4 +36,5 @@ grafana:
|
|||||||
org_role: Viewer
|
org_role: Viewer
|
||||||
log:
|
log:
|
||||||
level: error
|
level: error
|
||||||
|
mode: syslog
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ haproxy:
|
|||||||
check: check
|
check: check
|
||||||
server3:
|
server3:
|
||||||
name: pine03
|
name: pine03
|
||||||
host: 192.168.10.19
|
host: 192.168.10.162
|
||||||
port: 7480
|
port: 7480
|
||||||
check: check
|
check: check
|
||||||
backend2:
|
backend2:
|
||||||
@@ -107,7 +107,7 @@ haproxy:
|
|||||||
check: check
|
check: check
|
||||||
#server3:
|
#server3:
|
||||||
# name: pine03
|
# name: pine03
|
||||||
# host: 192.168.10.19
|
# host: 192.168.10.162
|
||||||
# port: 8080
|
# port: 8080
|
||||||
# check: check
|
# check: check
|
||||||
backend3:
|
backend3:
|
||||||
|
|||||||
8
top.sls
8
top.sls
@@ -13,11 +13,11 @@ base:
|
|||||||
- grafana
|
- grafana
|
||||||
- prometheus.prometheus
|
- prometheus.prometheus
|
||||||
- base.log.rsyslog.client
|
- base.log.rsyslog.client
|
||||||
'osarch:arm64 or osarch:armel':
|
'G@osarch:arm64 or G@osarch:armel':
|
||||||
- match: grain
|
- match: compound
|
||||||
- base.log.rsyslog.client
|
- base.log.rsyslog.client
|
||||||
'osarch:armhf and not fqdn:tumor.chaos':
|
'G@osarch:armhf and not G@fqdn:tumor.chaos':
|
||||||
- match: grain
|
- match: compound
|
||||||
- base.log.rsyslog.client
|
- base.log.rsyslog.client
|
||||||
|
|
||||||
#'pine03*':
|
#'pine03*':
|
||||||
|
|||||||
Reference in New Issue
Block a user