{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/chef-splunk/issues/36","labels_url":"https://api.github.com/repos/chef-cookbooks/chef-splunk/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/chef-splunk/issues/36/comments","events_url":"https://api.github.com/repos/chef-cookbooks/chef-splunk/issues/36/events","html_url":"https://github.com/chef-cookbooks/chef-splunk/issues/36","id":73859461,"number":36,"title":"inputs.conf is too restrictive","user":{"login":"Sauraus","id":3769441,"avatar_url":"https://avatars.githubusercontent.com/u/3769441?v=3","gravatar_id":"","url":"https://api.github.com/users/Sauraus","html_url":"https://github.com/Sauraus","followers_url":"https://api.github.com/users/Sauraus/followers","following_url":"https://api.github.com/users/Sauraus/following{/other_user}","gists_url":"https://api.github.com/users/Sauraus/gists{/gist_id}","starred_url":"https://api.github.com/users/Sauraus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sauraus/subscriptions","organizations_url":"https://api.github.com/users/Sauraus/orgs","repos_url":"https://api.github.com/users/Sauraus/repos","events_url":"https://api.github.com/users/Sauraus/events{/privacy}","received_events_url":"https://api.github.com/users/Sauraus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-07T06:14:00Z","updated_at":"2015-08-12T15:57:46Z","closed_at":null,"body":"The inputs.conf file needs to be able to handle more than just tcp:// as a source, file monitoring for example must also be an option.\r\n\r\nI therefore propose a breaking change that will change the inputs.conf template to no longer have the hard-coded tcp:// source and instead have a fully attribute driven input selector, something like this:\r\n\r\n```default['splunk']['inputs_conf']['inputs'] = [\r\n    {\r\n        :inputname => 'monitor:///var/log/messages',\r\n        :config => {\r\n            :sourcetype => 'syslog',\r\n            :disabled   => 'false',\r\n            :followTail => '0'\r\n      }\r\n    },\r\n    {\r\n        :inputname => 'tcp://:123123',\r\n        :config => {\r\n            :sourcetype => 'syslog'\r\n      }\r\n    }\r\n]```\r\n\r\nNOTE: The above is only an illustration of options, very unlikely anyone would need both inputs in a inputs.conf file."},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/chef-splunk/issues/comments/130354709","html_url":"https://github.com/chef-cookbooks/chef-splunk/issues/36#issuecomment-130354709","issue_url":"https://api.github.com/repos/chef-cookbooks/chef-splunk/issues/36","id":130354709,"user":{"login":"jblaine","id":438740,"avatar_url":"https://avatars.githubusercontent.com/u/438740?v=3","gravatar_id":"","url":"https://api.github.com/users/jblaine","html_url":"https://github.com/jblaine","followers_url":"https://api.github.com/users/jblaine/followers","following_url":"https://api.github.com/users/jblaine/following{/other_user}","gists_url":"https://api.github.com/users/jblaine/gists{/gist_id}","starred_url":"https://api.github.com/users/jblaine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jblaine/subscriptions","organizations_url":"https://api.github.com/users/jblaine/orgs","repos_url":"https://api.github.com/users/jblaine/repos","events_url":"https://api.github.com/users/jblaine/events{/privacy}","received_events_url":"https://api.github.com/users/jblaine/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T15:57:46Z","updated_at":"2015-08-12T15:57:46Z","body":"I could swear I +1'd this before, but clearly didn't. I agree completely with @Sauraus "}}