{"action":"created","issue":{"url":"https://api.github.com/repos/balabit/syslog-ng/issues/760","labels_url":"https://api.github.com/repos/balabit/syslog-ng/issues/760/labels{/name}","comments_url":"https://api.github.com/repos/balabit/syslog-ng/issues/760/comments","events_url":"https://api.github.com/repos/balabit/syslog-ng/issues/760/events","html_url":"https://github.com/balabit/syslog-ng/issues/760","id":114804796,"number":760,"title":"Enhancement: support for puppet facter","user":{"login":"faxm0dem","id":112638,"avatar_url":"https://avatars.githubusercontent.com/u/112638?v=3","gravatar_id":"","url":"https://api.github.com/users/faxm0dem","html_url":"https://github.com/faxm0dem","followers_url":"https://api.github.com/users/faxm0dem/followers","following_url":"https://api.github.com/users/faxm0dem/following{/other_user}","gists_url":"https://api.github.com/users/faxm0dem/gists{/gist_id}","starred_url":"https://api.github.com/users/faxm0dem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faxm0dem/subscriptions","organizations_url":"https://api.github.com/users/faxm0dem/orgs","repos_url":"https://api.github.com/users/faxm0dem/repos","events_url":"https://api.github.com/users/faxm0dem/events{/privacy}","received_events_url":"https://api.github.com/users/faxm0dem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-03T12:25:45Z","updated_at":"2015-11-03T13:11:23Z","closed_at":null,"body":"## Use-cases\r\n\r\nThe idea is the following: make [facter](https://puppetlabs.com/facter) facts available in syslog-ng.\r\nThis would allow for adding useful static information to the logs on the host running syslog-ng (as discussed on the [ml](https://lists.balabit.hu/pipermail/syslog-ng/2015-November/022466.html)) *e.g.* operating system, serial number etc.\r\n\r\n## Implementation\r\n\r\nA few implementation proposals:\r\n\r\n* via environment-like macros *e.g.* `${FACTER[osfamily]}`\r\n* via some kind of SCL which would use `@confgen`\r\n* via a template function `$(facter osfamily)`\r\n\r\nSome kind of cache would probably be needed, maybe configurable with a timeout of 0 in case of \"at-startup-only\"."},"comment":{"url":"https://api.github.com/repos/balabit/syslog-ng/issues/comments/153347812","html_url":"https://github.com/balabit/syslog-ng/issues/760#issuecomment-153347812","issue_url":"https://api.github.com/repos/balabit/syslog-ng/issues/760","id":153347812,"user":{"login":"ihrwein","id":1019384,"avatar_url":"https://avatars.githubusercontent.com/u/1019384?v=3","gravatar_id":"","url":"https://api.github.com/users/ihrwein","html_url":"https://github.com/ihrwein","followers_url":"https://api.github.com/users/ihrwein/followers","following_url":"https://api.github.com/users/ihrwein/following{/other_user}","gists_url":"https://api.github.com/users/ihrwein/gists{/gist_id}","starred_url":"https://api.github.com/users/ihrwein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihrwein/subscriptions","organizations_url":"https://api.github.com/users/ihrwein/orgs","repos_url":"https://api.github.com/users/ihrwein/repos","events_url":"https://api.github.com/users/ihrwein/events{/privacy}","received_events_url":"https://api.github.com/users/ihrwein/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T13:11:23Z","updated_at":"2015-11-03T13:11:23Z","body":":+1: for `$(facter osfamily)` and the whole idea"}}