Skip to content

purge_inputs => true leaves artifacts in inputs.conf #332

Open
@oniGino

Description

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.2
  • Ruby: 2
  • Distribution: centos 7
  • Module version: 9.0.0

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

  1. Create a @splunkforwarder_input entry for a file
  2. remove that entry

What are you seeing

[section] will be left behind but its content will be removed
example

index=ops_metrics
ignoreOlderThan=4d
blacklist=\.([0-9]|gz)$

[monitor:///opt/acton/var/log/streamer/streamer.log] <--- WE DO NOT WANT THIS

[monitor:///opt/acton/classic_core/*.log]
sourcetype=cc_ext_mon_logs

What behaviour did you expect instead

we are running

  class { '::splunk::forwarder':
         purge_inputs    => true,
         purge_outputs   => true
}

Should remove all inputs not defined

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions