Getting Data In

Adding new data to index with a new sourcetype

Kendrick33
Explorer

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

thall79
Communicator

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

travis.

0 Karma

Kendrick33
Explorer

Thanks travis for your help!

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...