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
Get Updates on the Splunk Community!

AI for AppInspect

We’re excited to announce two new updates to AppInspect designed to save you time and make the app approval ...

App Platform's 2025 Year in Review: A Year of Innovation, Growth, and Community

As we step into 2026, it’s the perfect moment to reflect on what an extraordinary year 2025 was for the Splunk ...

Operationalizing Entity Risk Score with Enterprise Security 8.3+

Overview Enterprise Security 8.3 introduces a powerful new feature called “Entity Risk Scoring” (ERS) for ...