Getting Data In

How to set sourcename of TCP input via CLI?

giraffe
Explorer

The CLI command "add tcp ..." does not allow one to set the sourcename of the input source that it creates. How can one set it through the CLI?

0 Karma
1 Solution

giraffe
Explorer

I assume it's impossible. I've found the CLI not to be useful so I've written Ruby scripts to edit the ini files in etc/system/local and restart the splunk server.

View solution in original post

0 Karma

mic
Splunk Employee
Splunk Employee

it only provides parameter for sourcetype, not source
http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Monitornetworkports

0 Karma

giraffe
Explorer

I assume it's impossible. I've found the CLI not to be useful so I've written Ruby scripts to edit the ini files in etc/system/local and restart the splunk server.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...