Hi,
I am trying to create dynamic lookup file from search.
Before executing search to create lookupfile using outputlookup, I did not configure a stanza in transforms.conf because the csv is rarely used (only one time).
For testing, I did the following. and it was successful.
My questions is "Is it supported to use of lookup command with filename?"
ithout stanza in transforms.conf, I executed the following search to create csv file in lookup directry.
sourcetype="secure" | stats first(from) as ip by username | outputlookup ip_user.csv
Then, checked if the csv was created:
|inputlookup ip_user.csv
Result was successful.
Then, I used the csv file to do other search.
sourcetype="secure" | top limit=1 from | fields + from | lookup ip_user.csv ip as from
I could get the expected result.
Is this operation supported?
Because in the doc lookup command's syntax doesn't include the use of filename directly without stanza for lookup table name and filename association, I am wondering this is not right approach.
Could anyone tell me if this is OK?
Thank you, always!
... View more