Splunk Search

Splunk query to Append/replace the specific fields in the lookup file (csv)

mala_splunk_91
Explorer

Hi, 

I  have a lookup file with the fields - biz_department, biz_unit, biz_owner, data_usage

I have a query to generate the "datausage" values based on biz_unit. I will schedule the report so that it will update only the "data_usage" values in the lookup file periodically.

How can i call the lookupfile and update only specific field?

Thanks

MS

Labels (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

It's not possible to replace individual fields of a lookup file.  The entire file must be replaced or appended.

Usually, the lookup file is read, updates are made, and then the file is rewritten.

| <<your datausage query>>
| append [ inputlookup mylookupfile.csv ]
```Save only the newest events (from the query)```
| dedup biz_department, biz_unit, biz_owner
| outputlookup mylookupfile.csv
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...