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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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