I want to get my inputlookup csv filename with the query.
| inputlookup abc.csv
| stats count by inputlookup_filename ```<= the result I needed is "abc"```
Or
| table inputlookup_filename ```<= the result I needed is "abc"```
Hi
you get filename with rest e.g.
| rest /services/data/lookup-table-files search="abc.csv"
| fields title eai:appName eai:data
r. Ismo
Thanks for your response. It's really helpful and knowledgeable. Your rest query can get the lookupfilename as title.
Actually, my original search query is -
| inputlookup abc.csv | rename field1 as new_field
| append [| inputlookup def.csv | rename field1 as new_field]
| table new_field
When I put rest query that you provided, "rest" must be the first place in search.
I do want to know how to combine my original query and rest query to get the new_field and lookupfilename.
Thank you very much, Sir. Finally, I got the solution based on your suggestion. I put the filename column and value in the csv file. That is the easy way to get the lookupfilename in search.