Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DonaldElliot opened this issue Dec 12, 2023 · 1 comment
Open

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

DonaldElliot opened this issue Dec 12, 2023 · 1 comment

Comments

@DonaldElliot
Copy link

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

@Bre77
Copy link
Owner

Bre77 commented Dec 15, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants