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!

.conf24 | Registration Open!

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

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...