puppet-splunk icon indicating copy to clipboard operation
puppet-splunk copied to clipboard

Declare a monitor resource without any option in inputs.conf

Open Vincent-- opened this issue 8 years ago • 1 comments

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 3.8.7
  • Ruby: ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
  • Distribution: Linux siem 4.4.0-31-generic #50~14.04.1-Ubuntu SMP Wed Jul 13 01:07:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
  • Module version: 5.0.1

How to reproduce (e.g Puppet code you use)

Try to add a monitor resource without any option in the inputs.conf (or with an empty value)

What are you seeing

The corresponding line is not added

What behaviour did you expect instead

The corresponding line should be added

Output log

Any additional information you'd like to impart

Not working:

splunk::forwarder::forwarder_input  :
    'default_foo':
        section : 'monitor://foo/bar.log'
        tag     : 'splunk_forwarder'

Not working:

splunk::forwarder::forwarder_input  :
    'default_foo':
        section : 'monitor://foo/bar.log'
        setting : 'foo'
        value   : 
        tag     : 'splunk_forwarder'

Working (but I don't want to declare any variable for this monitor entry) :

splunk::forwarder::forwarder_input  :
    'default_foo':
        section : 'monitor://foo/bar.log'
        setting : 'foo'
        value   : ''
        tag     : 'splunk_forwarder'

Working (but I don't want to declare any variable for this monitor entry):

splunk::forwarder::forwarder_input  :
    'default_foo':
        section : 'monitor://foo/bar.log'
        setting : 'foo'
        value   : 'bar'
        tag     : 'splunk_forwarder'

Vincent-- avatar Nov 01 '16 18:11 Vincent--

This is really not the splunk module but the inifile module that splunk uses here

https://github.com/puppetlabs/puppetlabs-inifile

TraGicCode avatar Oct 09 '17 05:10 TraGicCode