Getting Data In

Can you get a list of raw tcp ports being monitored from just an index name?

juniormint
Communicator

My app is sending events to a TCP port that Splunk is monitoring. Rather than make the port number part of the configuration of my app, I am hoping that I can ask Splunk for available ports.

Is this doable? How might I do it?

Tags (1)
0 Karma

lguinn2
Legend

This is not related to the Splunk index. However, you could write some code using the Splunk API to query a Splunk server (or servers) for the list of TCP or UDP ports that Splunk is currently monitoring.

Splunk's REST API Overview

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...