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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...