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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...