Bre77 / badrcm

Brett Adams' Dangerous REST Config Manager
5 stars 0 forks source link

How do I remove a line from a stanza ? #4

Open DonaldElliot opened 9 months ago

DonaldElliot commented 9 months ago

I mistyped a line - in Splunk Enterprise Cloud - how can I remove it ? in collections.conf

Bre77 commented 9 months ago

I mistyped a line - in Splunk Enterprise Cloud - how can I remove it ? in collections.conf

The Splunk API unfortunately doesn't let you delete a single attribute. What you can do is set it's value to an empty string. That effectively unsets its value.

However if it's the only line in the stanza in that app you could delete the stanza