[[sources.tcp]]
port = 50000
address = "::" # Bind address (default: dual-stack IPv4+IPv6)
forwarding_mode = false # Trust source_ip from upstream forwarders
no_delay = true # Disable Nagle's algorithm for lower latency
keepalive = true # TCP keepalive probes
flush_interval = "100ms" # Flush partial batches after this interval
batch_size = 500 # Messages per batch before flush
max_connections = 10000 # Reject new connections above this limit
buffer_size = 1048576 # Read buffer per connection (1 MB)
socket_buffer_size = 262144 # OS socket buffer (256 KB)
connection_timeout = "0s" # Idle timeout (0 = no timeout)