Questions tagged [fluentd]

Fluentd is open-source and distributed data collector, which receives logs in JSON format, buffers them, and sends them to other systems like Amazon S3, MongoDB, Hadoop, Loki(Grafana system) or other Fluentds.

1336 questions
6
votes
1 answer

Kubernetes save JSON logs to file with escaped quotes. Why?

I'm using Fluentd with Elasticsearch for logs from Kubernetes but I noticed that some JSON logs cannot be correctly indexed because JSON is stored as string. Logs from kubectl logs look…
AJKantak
  • 61
  • 1
  • 4
6
votes
4 answers

Parse nginx ingress logs in fluentd

I'd like to parse ingress nginx logs using fluentd in Kubernetes. That was quite easy in Logstash, but I'm confused regarding fluentd syntax. Right now I have the following rules: type tail path /var/log/containers/*.log pos_file…
kay
  • 693
  • 2
  • 7
  • 13
6
votes
4 answers

How to monitor docker containers log from non-root user?

I want to monitor docker containers log from non-root user(td-agent) and on host server, sudo chmod o+rx /var/lib/docker sudo find /var/lib/docker/containers/ -type d -exec chmod o+rx {} \; sudo find /var/lib/docker/containers/ -type f -exec chmod…
Matt - sanemat
  • 5,418
  • 8
  • 37
  • 41
5
votes
2 answers

fluentd cannot find custom filter plugin on Windows with calyptia-fluentd

On this system I have calyptia-fluentd, and I'm trying to develop a custom filter plugin. To start, I've created a gem with some initial code, and I have installed this gem, and have created a config file with uses the plugin. However, starting…
Ivan Voras
  • 1,895
  • 1
  • 13
  • 20
5
votes
1 answer

Fluentd worker 0 finished with status 0

Running Fluentd 3.5, which seems to give up after failing to flush the buffer. I can see there is a retry_forever parameter which is currently set to false, however I rather find out what is causing it and set a retry threshold to something…
Ari Gold
  • 71
  • 1
  • 6
5
votes
2 answers

Disable time and tags in fluentd stdout output plugin

Remove time and tag from fluentd output plugin stdout with json Fluentd's output plugin produces output like: 2017-11-28 11:43:13.814351757 +0900 tag: {"field1":"value1","field2":"value2"} So timestamp and tag are before the json. How can I remove…
tommes
  • 51
  • 2
5
votes
1 answer

fluentd error "Systemd::JournalError: No such file or directory"

I did install fluentd-kubernetes-daemonset on my kube workers on one did work without any error but on the other is throwing the following errors: 2018-12-07 03:48:33 +0000 [warn]: #0 [in_systemd_bootkube] Systemd::JournalError: No such file or…
Victor Godoy
  • 1,642
  • 15
  • 18
5
votes
0 answers

Fluentd to format Java exception log in single line

I have a java application deployed in GCP . Pointed that log file to Stackdriver logging using fluentd . Java exception log was formatted in a separate line. So Stackdriver logging unable to capture it as error/ warning . I need to format my…
soundararajan.c
  • 2,538
  • 6
  • 29
  • 51
5
votes
1 answer

How to send logs to multiple outputs with same match tags in Fluentd?

I have a Fluentd instance, and I need it to send my logs matching the fv-back-* tags to Elasticsearch and Amazon S3. Is there a way to configure Fluentd to send data to both of these outputs? Right now I can only send logs to one source using the…
Pedro Henrique
  • 332
  • 1
  • 2
  • 13
5
votes
1 answer

Does Fluentd support log rotation for file output?

The current setup I am working with is a Docker compose stack with multiple containers. These containers send their logging information to a logging container (inside the compose stack) running the Fluentd daemon. The configuration for Fluentd…
Rh1303
  • 51
  • 1
  • 1
  • 2
5
votes
1 answer

Calculate session duration in Kibana

With Kibana I have managed to visualize continious requests in a linear chart by: using a line chart Y-axis: Aggregation: Count X-axis: Date Histogram with field @timestamp Split Lines: Sub Aggregation: Terms Field IP address Now I would like to…
Mahoni
  • 7,088
  • 17
  • 58
  • 115
5
votes
2 answers

Fluentd gives the error: Log file is not writable, when starting the server

Here's my td-agent.conf file @type http port 8888 @type file path /var/log/what.txt But when I try to start the server using sudo /etc/init.d/td-agent start it gives the following error:…
Akshay Arora
  • 729
  • 1
  • 8
  • 20
5
votes
1 answer

Springboot sending logs to fluentd not working

I need some help for the following problem. I have a spring boot application and I would like to configure a fluentd appender using logback. I've created a file called logback.xml in my src/main/resources with the following content:
CC.
  • 2,736
  • 11
  • 53
  • 70
5
votes
0 answers

Measure elapsed time between two events in fluentd

Im looking for a way to measure the elapsed time between to events using fluentd. Also it would be awesome to be able to merge two or more events. Until now I was using logstash. There are two plugins for my usecase in logstash: elapsed and…
maigl
  • 51
  • 2
5
votes
1 answer

failed to log to fluentd in clojure

To log to fluentd in java API, we need first to create a hashmap and then convert it to map, and then pass the map to the log function like: Map data = new HashMap(); data.put("from", "userA"); …
Daniel Wu
  • 5,853
  • 12
  • 42
  • 93