Initial commit
This commit is contained in:
40
fluent-bit/conf/fluent-bit.conf
Normal file
40
fluent-bit/conf/fluent-bit.conf
Normal file
@@ -0,0 +1,40 @@
|
||||
[SERVICE]
|
||||
# Flush data every 5 seconds
|
||||
Flush 5
|
||||
# Log level for Fluent Bit itself (useful for debugging)
|
||||
Log_Level info
|
||||
# Location of parser definitions
|
||||
Parsers_File parsers.conf
|
||||
|
||||
# [INPUT] - Where do the logs come from?
|
||||
[INPUT]
|
||||
Name tail
|
||||
Tag squid.access
|
||||
Path /var/log/squid/access.log
|
||||
# Use the parser defined in parsers.conf
|
||||
Parser squid_parser
|
||||
# Database file to track reading position
|
||||
DB /fluent-bit/db/squid.db
|
||||
# Do not skip the first line if the file is new
|
||||
Read_from_Head true
|
||||
|
||||
# [FILTER] - How to transform logs?
|
||||
[FILTER]
|
||||
Name lua
|
||||
Match squid.access
|
||||
# Lua script file to use
|
||||
script transform.lua
|
||||
# Function to call in the script
|
||||
call remap_records
|
||||
|
||||
# [OUTPUT] - Where to send the logs?
|
||||
[OUTPUT]
|
||||
Name opentelemetry
|
||||
Match squid.access
|
||||
# Host and port of your OTLP/HTTP SigNoz receiver
|
||||
Host my-log-instance.com
|
||||
Port 4318
|
||||
# API path for logs
|
||||
logs_uri /v1/logs
|
||||
# Do not use TLS for an http:// connection
|
||||
tls Off
|
||||
Reference in New Issue
Block a user