Getting Data In

Where are TCP and UDP inputs indexed?

lguinn2
Legend

When I configure network inputs (TCP or UDP), I provide the port number and sourcetype, but there is nowhere to specify the index. Where are these inputs indexed? Can I change the index that is used for network inputs?

2 Solutions

V_at_Splunk
Splunk Employee
Splunk Employee

Unless otherwise specified, all data goes into the default index.

If adding network input through CLI, you can specify index with the -index option. (Issue splunk help add for syntax help.)

If adding network input through Manager » Data inputs » TCP » Add New or Manager » Data inputs » UDP » Add New, you should see an Index dropdown list. Is it there? What version are you using, please?

View solution in original post

Gaurav
Splunk Employee
Splunk Employee

In 4.0.x, you are indeed required to manually edit inputs.conf to specify an index for UDP/TCP inputs.

In 4.1, we'll be exposing index, host, and source configuration for all input types within Splunk Manager. In addition you'll be able to blacklist/whitelist from the UI for monitor inputs.

View solution in original post

balbano
Contributor

Is there someway to setup listening to one port and have it direct logs to a specific index depending on whitelist/blacklist?

What I mean is can you setup logs to go to multiple indexes through 1 listening port (e.g. TCP 514).

Brian

0 Karma

Gaurav
Splunk Employee
Splunk Employee

In 4.0.x, you are indeed required to manually edit inputs.conf to specify an index for UDP/TCP inputs.

In 4.1, we'll be exposing index, host, and source configuration for all input types within Splunk Manager. In addition you'll be able to blacklist/whitelist from the UI for monitor inputs.

V_at_Splunk
Splunk Employee
Splunk Employee

Unless otherwise specified, all data goes into the default index.

If adding network input through CLI, you can specify index with the -index option. (Issue splunk help add for syntax help.)

If adding network input through Manager » Data inputs » TCP » Add New or Manager » Data inputs » UDP » Add New, you should see an Index dropdown list. Is it there? What version are you using, please?

hulahoop
Splunk Employee
Splunk Employee

Since that is the sad case, then you must edit inputs.conf where the network input is defined and add the "index=foo" parameter to the input stanza.

0 Karma

lguinn2
Legend

version 4.0.9, build 74233

But there is no Index dropdown list in the web UI for either TCP or UDP inputs

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Painting a Clearer Picture: Creating Cross-Domain Visibility with AI Canvas

    Thursday, June 25, 2026  |  11AM PDT / 2PM EDT  Duration: 1 Hour (Includes live Q&A) Register to ...

Analytics Workspace deprecation

As of Splunk Cloud Platform 10.4.2604 and Splunk Enterprise 10.4, Analytics Workspace is now deprecated. ...

Splunk Developer Day Recap: Building, Publishing, and Growing on the Splunk Platform

Splunk Developer Day brought the Splunk developer community together for a practical look at what it means to ...