[SERVICE]# Flush# =====# Set an interval of seconds before to flush records to a destinationFlush 5# Daemon# ======# Instruct Fluent Bit to run in foreground or background mode.Daemon Off# Log_Level# =========# Set the verbosity level of the service, values can be:## - error# - warning# - info# - debug# - trace## By default 'info' is set, that means it includes 'error' and 'warning'.Log_Level info# Parsers_File# ============# Specify an optional 'Parsers' configuration fileParsers_File parsers.confPlugins_File plugins.conf# HTTP Server# ===========# Enable/Disable the built-in HTTP Server for metricsHTTP_Server OffHTTP_Listen 0.0.0.0HTTP_Port 2020Name execCommand "/usr/bin/supervisorctl status"Interval_Sec 120Tag sa_monitoring[INPUT]Name tcpTag sa_logsHost 0.0.0.0Port 5000Format json[INPUT]Name tcpTag sa_monitoringHost 0.0.0.0Port 5001Format json[INPUT]Name tcpTag sa_statsHost 0.0.0.0Port 5002Format json[OUTPUT]Name fileMatch sa_logsPath /opt/ns/log/sa/combined.log[OUTPUT]Name fileMatch sa_monitoringPath /opt/ns/monitor/sa/combined.log[OUTPUT]Name fileMatch sa_statsPath /opt/ns/stats/sa/combined.log
[SERVICE]# Flush# =====# Set an interval of seconds before to flush records to a destinationFlush 5# Daemon# ======# Instruct Fluent Bit to run in foreground or background mode.Daemon Off# Log_Level# =========# Set the verbosity level of the service, values can be:## - error# - warning# - info# - debug# - trace## By default 'info' is set, that means it includes 'error' and 'warning'.Log_Level info# Parsers_File# ============# Specify an optional 'Parsers' configuration fileParsers_File parsers.confPlugins_File plugins.conf# HTTP Server# ===========# Enable/Disable the built-in HTTP Server for metricsHTTP_Server OffHTTP_Listen 0.0.0.0HTTP_Port 2020[INPUT]Name tailPath /opt/ns/log/sa-*.logDB /opt/ns/log/cursor_state.dbDB.Sync NormalBuffer_Max_Size 5MBBuffer_Chunk_Size 400kMem_Buf_Limit 20MTag sa_logs[INPUT]Name cpuTag sa_statsInterval_Sec 120[INPUT]Name memoryTag sa_statsInterval_Sec 120[INPUT]Name execCommand /usr/bin/supervisorctl statusInterval_Sec 120Tag sa_monitoring[FILTER]Name record_modifierMatch *Record hostname ${HOSTNAME}[OUTPUT]Name tcpMatch sa_logsHost sa-monitor-01.pe.localPort 5000Format json_lines[OUTPUT]Name tcpMatch sa_monitoringHost sa-monitor-01.pe.localPort 5001Format json_lines[OUTPUT]Name tcpMatch sa_statsHost sa-monitor-01.pe.localPort 5002Format json_lines#[OUTPUT]# Name stdout
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.