How to index data from a CSV file?
Settings -> Add Data -> monitor -> files and directories.
You could also add the data as a lookup and do an " | inputlookup asdf | collect sourcetype=stuff index=stuff " but thats kind of a roundabout way of doing it.