Follow these steps to monitor and index the contents of a file:
- Log in to your Splunk server.
- From the menu in the top right-hand corner, click on the Settings menu and then click on the Add Data link:
- If you are prompted to take a quick tour, click on Skip.
- In the How do you want to add data section, click on monitor:
- Click on the Files & Directories section:
- In the File or Directory section, enter the path to the logfile ...