nginx lua log ingestion with fluent #9471
Unanswered
pablomartinezTFTest
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have nginx applications with lua scripts in the log output that have lua statements. I also have pure nginx and .net deployments.
Fluent sends the serilog and nginx logs but not the lua outputs. I have the following fluent configuration:
`fluent-bit.conf: |
[SERVICE]
Flush 5
Log_Level info
Parsers_File parsers.conf
Daemon off
input-kubernetes.conf: |
[INPUT]
Name tail
Path /var/log/containers/.log
Exclude_Path /var/log/containers/kube-system*
Tag <container_name>-<namespace_name>-aks
Tag_Regex (?<pod_name>a-z0-9?(.a-z0-9?)*)(?<namespace_name>[^_]+)(?<container_name>.+)-
Parser cri
DB /var/log/flb_kube.db
Mem_Buf_Limit 10MB
Skip_Long_Lines On
Refresh_Interval 5
output-elasticsearch.conf: |
[OUTPUT]
Name es
Match *
tls On
tls.verify Off
Retry_Limit False
Replace_Dots On
Suppress_Type_Name On
Host ${FLUENT_ELASTICSEARCH_HOST}
Port ${FLUENT_ELASTICSEARCH_PORT}
HTTP_User ${FLUENT_ELASTICSEARCH_USER}
HTTP_Passwd ${FLUENT_ELASTICSEARCH_PASSWORD}
Logstash_Format On
Logstash_Prefix_Key $tag
Logstash_DateFormat %Y.%m
Trace_Error On
parsers.conf: |
[PARSER]
Name serilog
Format json
Time_Key @timestamp
Time_Format %Y-%m-%dT%H:%M:%S.%L
Time_Keep On
Beta Was this translation helpful? Give feedback.
All reactions