Getting Data In

Adding new data to index with a new sourcetype


I want add some files from a directory to be monitored by splunk, but I also want to give it a new sourcetype called capacityType

According to the admin manual would it be:

./splunk add monitor /opt/capacity_script/newdblog/capacity_* [-sourcetype capacityType]

Tags (1)
0 Karma


Try removing the [ ] around -sourcetype capacityType.

./splunk add monitor /opt/capacity_script/newdblog/capacity_* -sourcetype capacityType

This should update the inputs.conf located in $SPLUNK_HOME/etc/apps/search/local folder.

Also after updating the inputs.conf I always do a splunk restart.

Hope this helps


0 Karma


Thanks travis for your help!

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...