influxdata / telegraf

Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
https://influxdata.com/telegraf
MIT License
14.68k stars 5.59k forks source link

Telegraf service dump data to its service tmp file inspite of dumping the data to the output file. #15936

Closed th3cod3r closed 1 month ago

th3cod3r commented 1 month ago

Please direct all support questsions to slack or the forums. Thank you.

I am using arch linux. In that i am using telegraf as a service with systemd and when service will run it will dump data to service tmp (/tmp/systemd-private-35b039824f4b42ff8691e2d95e0d0169-telegraf.service-FplukZ/tmp/metrics.json) and as a output file i set only /tmp/metrics.json. I already try with the service that it will create PrivateTmp=false/no but when i check with the systemctl show telegraf.service | grep PrivateTmp it shows yes and creating the output file at service tmp location.

Need to do as i mentioned in the config.

telegraf-tiger[bot] commented 1 month ago

Hello! I recommend posting this question in our Community Slack or Community Forums, we have a lot of talented community members there who could help answer your question more quickly. You can also learn more about Telegraf by enrolling at InfluxDB University for free!

Heads up, this issue will be automatically closed after 7 days of inactivity. Thank you!