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!

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 ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...