I've followed http://docs.splunk.com/Documentation/Splunk/latest/User/CreateAndConfigureFieldLookups and looked at plenty of questions about the same topic on here and I still can't figure out what I'm doing wrong with my automatic lookup. I also watched a video on this but it didn't really show how the lookup was created.
Here's my csv file I want to use for a file based lookup:
gnovak@booberry:cat WAT_Lookups.csv
"filename,description"
"Invoice.pdf,Billing Invoice"
"Statement.pdf,Billing Statement"
"text.txt,Billing text"
"*-*.pdf,Scorecard"
For Lookup Table Files I selected
this csv and gave it the same name
for Destination filename.
For Lookup Definitions, destination app is "search", name is "WAT_Lookups.csv", type is "file based", and the lookup file is "WAT_Lookups.csv".
For Automatic Lookups, I have the following
Lookup Table: WAT_Lookups
Lookup input fields - filename = filename
Lookup Output fields - description = description
Apply to : sourcetype named EPPWEB
I have checked my props.conf and transforms.conf files after configuring all of this and there are entires in there. I also made sure the permissions on these were all Everyone can Read, Admin can write for only the search app which is where this is located.
When I do a search for sourcetype=EPPWEB, I get the following error:
[log1.blahblahblah.info] Error 'Could not find all of the specified lookup fields in the lookup table.' for conf 'source::EPPWEB' and lookup table 'WAT_Lookups'
[log2.blahblahblah.info] Error 'Could not find all of the specified lookup fields in the lookup table.' for conf 'source::EPPWEB' and lookup table 'WAT_Lookups'
I just can't seem to get it to work.
Basically the end result is, for example, a filename called Invoice.pdf to be otherwise known as "Billing Invoice".
NOTE: I already have "filename" as a field extracted through props.conf.
So under the field filename you have some files listed like text.text, Invoice.pdf, etc. I'm not sure if this in doing anything w/ the lookup.
... View more