[ilookuptest1]
INGEST_EVAL = pod="testpod1"
[ilookuptest2]
INGEST_EVAL= annotation=lookup("testlookup.csv", json_object("pod","pod"), json_array("annotation"))
lookup testlookup.csv:
pod,annotation
testpod1,testannotation1
testpod2,testannotation2
ingest data using:
props.conf and transforms.conf are located at $SPLUNK_HOME/etc/system/local .. lookup at $SPLUNK_HOME/etc/system/lookups .
I'm getting errors in splunkd.log:
WARN CsvDataProvider - No valid lookup table file found for this lookup=testlookup
ERROR CsvDataProvider - The lookup table 'testlookup' does not exist or is not available.
ERROR pipeline - Runtime exception in pipeline=typing processor=regexreplacement error='Invalid function argument' confkey='source::http:test|host::192.168.208.5:8088|ilookuptest|'
ERROR pipeline - Uncaught exception in pipeline execution (regexreplacement) - getting next event
The event is not indexed...
When defining transforms.conf
INGEST_EVAL= annotation=lookup("testlookup", json_object("pod","pod"), json_array("annotation"))
I'm getting errors in splunkd.log:
WARN CsvDataProvider - Unable to find filename property for lookup=testlookup.csv will attempt to use implicit filename.
Event is indexed but not getting the value from the lookup.
File is there, read permissions are set, "| inputlookup testlookup.csv" is displaying results.
Any hints or a working INGEST_EVAL using lookups example?
Best Regards,
Andreas