Hello ~
Can I only have a specific file extension when I upload a file?
For example .. ~.log OR ~.txt OR ~.dat
Please reply.
Take a look at this:
https://docs.splunk.com/Documentation/Splunk/7.1.3/Data/Specifyinputpathswithwildcards
Required by file upload, not by file monitoring.