I am located in the UTC+3 timezone.
How can I change the timestamp in the log files?
The logs show the time with a three-hour difference.
Am I correct in understanding that this needs to be done in config.alloy?
Here are my settings:
loki.write "grafana_loki" {
endpoint {
url = "http://192.168.1.58:3100/loki/api/v1/push"
}
external_labels = {
host = "vmware",
}
}
discovery.docker "containers" {
host = "unix:///var/run/docker.sock"
}
discovery.relabel "containers" {
targets = discovery.docker.containers.targets
rule {
action = "replace"
source_labels = ["__meta_docker_container_name"]
target_label = "container_name"
}
rule {
action = "replace"
source_labels = ["__meta_docker_container_id"]
target_label = "container_id"
}
}
loki.source.docker "containers_logs" {
host = "unix:///var/run/docker.sock"
targets = discovery.relabel.containers.output
forward_to = [loki.process.time.receiver]
}
loki.process "time" {
forward_to = [ loki.write.grafana_loki.receiver ]
stage.timestamp {
source = "timestamp"
format = "RFC3339 +3"
}
}