Splunk Search

Use search results to populate a lookup table

bnorthway
Path Finder

I am following the directions on http://docs.splunk.com/Documentation/Splunk/6.2.3/Knowledge/Addfieldsfromexternaldatasources#Use_sea...

I edited my savedsearches.conf as directed, but the CSV file is not being created. How can I troubleshoot this problem?

etc/apps/search/local/savedsearches.conf:

[Service Now assets]
action.email.reportServerEnabled = 0
action.email.useNSSubject = 1
action.populate_lookup = 1
action.populate_lookup.dest = etc/system/lookups/service_now_assets.csv
alert.digest_mode = True
alert.suppress = 0
alert.track = 0
auto_summarize.dispatch.earliest_time = -1d@h
counttype = number of events
cron_schedule = 0 18 * * *
description = ServiceNow assets
display.events.fields = ["sourcetype","Message_Name","source","Message_Info","Message_Title","Server","msg","Server"]
display.events.type = table
display.visualizations.charting.chart = area
display.visualizations.show = 0
enableSched = 1
quantity = 5000
relation = less than
request.ui_dispatch_app = search
request.ui_dispatch_view = search
run_on_startup = false
search = index=service_now source=service_now earliest=-1d

etc/system/local/transforms.conf:

[service_now_asset]
filename = etc/system/lookups/service_now_assets.csv
case_sensitive_match = false

etc/system/local/props.conf:

[asset_properties]
LOOKUP-servicenow = service_now_asset Server
0 Karma

woodcock
Esteemed Legend

I know this seems silly but every time I use a construct referring to a file location that is relative to $SPLUNK_HOME, I have used /etc/... instead of etc/.... I know the documentation says the latter but I would add a slash to the beginning and see if it fixes it.

bnorthway
Path Finder

I removed the path entirely and Splunk was able to find the CSV correctly! Running the saved search does not update the CSV, but at least the lookup part is working...

0 Karma

woodcock
Esteemed Legend

Keep playing with different variations on the path and I think you will get it.

0 Karma

woodcock
Esteemed Legend

Paste your savedsearches.conf stanza; there is probably a typo.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Did you restart Splunk after editing savedsearches.conf? What were your edits?

---
If this reply helps you, Karma would be appreciated.
0 Karma

bnorthway
Path Finder

yes I have restarted. I posted the relevant sections from my config files

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...