Getting Data In

REST API - How to?

jdunlea_splunk
Splunk Employee
Splunk Employee

I want to know the following in relation to the REST API:

  1. Can we hit endpoints on UFs and LWFs?
  2. What is the REST endpoint to check if an instance is alive?
  3. Can we read a splunk log file from the file system itself using the REST API? EG: On a LWF, where we are not indexing any data, but we are writing to splunk logs files - Is there a way to view/query/tail the log files directly from the REST API?

Thanks!

John

Tags (5)
0 Karma
1 Solution

ziegfried
Influencer

1) Yes, depending on the following preconditions:

2) Probably any. Being able to connect to the splunkd webserver at all indicates the process is running.

3) Don't think so. You can forward the splunk logs to your indexer(s), though. Eg. by adding the following to the outputs.conf on your UF/LWF:

[tcpout]
forwardedindex.3.whitelist = _internal

View solution in original post

ziegfried
Influencer

1) Yes, depending on the following preconditions:

2) Probably any. Being able to connect to the splunkd webserver at all indicates the process is running.

3) Don't think so. You can forward the splunk logs to your indexer(s), though. Eg. by adding the following to the outputs.conf on your UF/LWF:

[tcpout]
forwardedindex.3.whitelist = _internal

jdunlea_splunk
Splunk Employee
Splunk Employee

Thank you Ziegfried! 🙂

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...