{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/872","repository_url":"https://api.github.com/repos/influxdata/telegraf","labels_url":"https://api.github.com/repos/influxdata/telegraf/issues/872/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/telegraf/issues/872/comments","events_url":"https://api.github.com/repos/influxdata/telegraf/issues/872/events","html_url":"https://github.com/influxdata/telegraf/issues/872","id":141532400,"number":872,"title":"Systemd service file not setup to log to /var/log/telegraf/telegraf.log","user":{"login":"markgoffin","id":7914063,"avatar_url":"https://avatars.githubusercontent.com/u/7914063?v=3","gravatar_id":"","url":"https://api.github.com/users/markgoffin","html_url":"https://github.com/markgoffin","followers_url":"https://api.github.com/users/markgoffin/followers","following_url":"https://api.github.com/users/markgoffin/following{/other_user}","gists_url":"https://api.github.com/users/markgoffin/gists{/gist_id}","starred_url":"https://api.github.com/users/markgoffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markgoffin/subscriptions","organizations_url":"https://api.github.com/users/markgoffin/orgs","repos_url":"https://api.github.com/users/markgoffin/repos","events_url":"https://api.github.com/users/markgoffin/events{/privacy}","received_events_url":"https://api.github.com/users/markgoffin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-17T09:52:43Z","updated_at":"2016-03-28T16:53:52Z","closed_at":"2016-03-28T16:42:35Z","body":"By default, on CentOS 7 (and I presume other systemd OSes) telegraf logging will go to the system log (`/var/log/messages`). It would be preferable to setup the logging to `/var/log/telegraf/telegraf.log` as the `initd` scripts do. This is also the location logrotate configuration is pointing at. Here is a link to [influxdb service file](https://github.com/influxdata/influxdb/blob/master/scripts/influxdb.service) which could be copied."},"comment":{"url":"https://api.github.com/repos/influxdata/telegraf/issues/comments/202483030","html_url":"https://github.com/influxdata/telegraf/issues/872#issuecomment-202483030","issue_url":"https://api.github.com/repos/influxdata/telegraf/issues/872","id":202483030,"user":{"login":"markgoffin","id":7914063,"avatar_url":"https://avatars.githubusercontent.com/u/7914063?v=3","gravatar_id":"","url":"https://api.github.com/users/markgoffin","html_url":"https://github.com/markgoffin","followers_url":"https://api.github.com/users/markgoffin/followers","following_url":"https://api.github.com/users/markgoffin/following{/other_user}","gists_url":"https://api.github.com/users/markgoffin/gists{/gist_id}","starred_url":"https://api.github.com/users/markgoffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markgoffin/subscriptions","organizations_url":"https://api.github.com/users/markgoffin/orgs","repos_url":"https://api.github.com/users/markgoffin/repos","events_url":"https://api.github.com/users/markgoffin/events{/privacy}","received_events_url":"https://api.github.com/users/markgoffin/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T16:53:52Z","updated_at":"2016-03-28T16:53:52Z","body":"OK yeah that sounds sensible. Sorry I just noticed the difference when using Telegraf on CentOS 6 and 7 and thought I'd raise it. But agreed it makes sense to stick with the most standard route for systemd."}}