You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Fluent-Bit and Loki and Grafana those versions is under
Fluent-Bit 2.2 Grafana 8.3.4 Loki 3.0.0
I have 2 Virtual Machine (Rockey OS 8)
the first VM is installed Loki and Grafana. The second VM is installed Nginx and Fluent Bit.
I wanna send Nginx access log to Loki using Fluent-Bit and visualize logs in Grafana. But Loki doesn't seem to received any logs from Fluent-Bit of the second VM. so I can't see any labels of Fluent-Bit that I configured in Grafana.
It's not a firewall issue. because when I replaced Fluent-Bit with Promtail, It worked well.
Please check my configuration and let me know that what I made wrong.
This is config of Loki in the first VM.
auth_enabled: false
server:
http_listen_port: 3100
grpc_listen_port: 9096
common:
instance_addr: 10.206.21.122
path_prefix: /tmp/loki
storage:
filesystem:
chunks_directory: /tmp/loki/chunks
rules_directory: /tmp/loki/rules
replication_factor: 1
ring:
kvstore:
store: inmemory
query_range:
results_cache:
cache:
embedded_cache:
enabled: true
max_size_mb: 100
schema_config:
configs:
- from: 2020-10-24
store: tsdb
object_store: filesystem
schema: v13
index:
prefix: index_
period: 24h
ruler:
alertmanager_url: http://localhost:9093
# By default, Loki will send anonymous, but uniquely-identifiable usage and configuration
# analytics to Grafana Labs. These statistics are sent to https://stats.grafana.org/
#
# Statistics help us better understand how Loki is used, and they show us performance
# levels for most users. This helps us prioritize features and documentation.
# For more information on what's sent, look at
# https://github.com/grafana/loki/blob/main/pkg/analytics/stats.go
# Refer to the buildReport method to see what goes into a report.
#
# If you would like to disable reporting, uncomment the following lines:
#analytics:
# reporting_enabled: false
This is config of Fluent-Bit in the second VM.
[PARSER]
Name std_nginx_parser
Format regex
Regex ^(?<remote>[^ ]*)(?: (?<x_forwarded_for>[^\[]*))+ \[(?<time>[^\]]*)\] "(?<method>\S+)(?: +(?<path>[^\"]*?)(?: +\S*)?)?" (?<code>[^ ]*) (?<size>[^ ]*) (?<elapsed_time>[^ ]*)(?: "(?<referer>[^\"]*)" "(?<agent>[^\"]*)")?$
Time_Key time
Time_Format %d/%b/%Y:%H:%M:%S %z
Types code:integer size:integer
[INPUT]
Name tail
Path /data01/logs/webLog/ssl_mssgmall/access/*_access.log
Parser std_nginx_parser
Tag std_nginx
[OUTPUT]
name loki
match *
host 10.206.21.122
port 3100
uri /loki/api/v1/push
labels job=fluentbit
I think Fluent-Bit sent nginx access logs to Loki well. because I can see "[2024/05/01 21:26:37] [debug] [output:loki:loki.0] 10.206.21.122:3100, HTTP status=204". but I don't know why loki hasn't received any labels.
The text was updated successfully, but these errors were encountered:
I'm using Fluent-Bit and Loki and Grafana those versions is under
Fluent-Bit 2.2 Grafana 8.3.4 Loki 3.0.0
I have 2 Virtual Machine (Rockey OS 8)
the first VM is installed Loki and Grafana. The second VM is installed Nginx and Fluent Bit.
I wanna send Nginx access log to Loki using Fluent-Bit and visualize logs in Grafana. But Loki doesn't seem to received any logs from Fluent-Bit of the second VM. so I can't see any labels of Fluent-Bit that I configured in Grafana.
It's not a firewall issue. because when I replaced Fluent-Bit with Promtail, It worked well.
Please check my configuration and let me know that what I made wrong.
This is config of Loki in the first VM.
This is config of Fluent-Bit in the second VM.
This is logs of fluent-bit in the second VM.
I think Fluent-Bit sent nginx access logs to Loki well. because I can see "[2024/05/01 21:26:37] [debug] [output:loki:loki.0] 10.206.21.122:3100, HTTP status=204". but I don't know why loki hasn't received any labels.
The text was updated successfully, but these errors were encountered: