Splunk Search

Is there a REST command to delete rows from lookup.csv?

pc1234
Explorer

is there a REST command to delete rows from the dmc_forwarder_assets.csv? For example, to remove rows where the status=missing or where hostname = a value provided in the REST command?

 

 

Thanks in advance.

 

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

There is no such command.  Individual lines in CSV files cannot be removed.  The only way to do it is to read the entire CSV, remove the unwanted lines, and re-write the file.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Unlocking Unified Insights: New Gigamon Federated Search App for Splunk

In today’s data-heavy environment, organizations are caught in a data distribution dilemma. As data volumes ...

GA: New Data Management App in Splunk Platform

Streamlining Data Management: Introducing a unified experience in Splunk Managing data at scale shouldn’t feel ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...