Files as inputs

The vast majority of events in Splunk come from files. Usually, these events are read from the machine where they are produced and as the logs are written. Very often, the entire input's stanza will look like this:

[monitor:///logs/interesting.log*] 
sourcetype=interesting 

This is often all that is needed. This stanza says:

These are usually perfectly acceptable defaults. If sourcetype is omitted, Splunk will pick a default source type based on the filename, which you don't want—your source type list will get very messy very fast.