Files
squid-ssl-bumping-lab/fluent-bit/conf/fluent-bit.conf
2025-06-14 17:03:07 +02:00

41 lines
1.1 KiB
Plaintext

[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