AppD Archive

Problem with API

CommunityUser
Splunk Employee
Splunk Employee

I am attempting to access Application configurations through the API for the purpose of checking the monitoring level to see if it is in development mode. What is the best way to go about doing this? I am not finding any good endpoints within the API.

0 Karma

Arun_Dasetty
Super Champion

Hi,

Apart from checking from Configuration screen in UI , we do not locate any REST API or other as such that will give status monitoring level , Hope that answers your query, we can hit URI /controller/#/location=APP_CONFIGURATION_HOME&timeRange=last_15_minutes.BEFORE_NOW.-1.-1.15&application=18 

where 18 is your application id, but this is same UI that will redirect to Controller UI

image.png

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Akumar, 

Thank you for your quick and detailed response. Do you know where the monitoring level gets saved? Does it save the monitoring level in a database?

Tags (2)
0 Karma

Arun_Dasetty
Super Champion

Hi,

Please find the query details below:

shell> cd <Controller_install_dir>/bin

shell> controller.bat/sh login-db

mysql> select id,instrumentation_level from application_configuration \G;

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

That worked! This is the SQL statement we executed for application name and monitoring level. 

select name,instrumentation_level from application,application_configuration where application.id=application_configuration.id and instrumentation_level="DEVELOPMENT";

I was not aware but instrumentaiton_level and monitoring level are synonymous. 

0 Karma
Get Updates on the Splunk Community!

Splunk MCP & Agentic AI: Machine Data Without Limits

  Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization ...

Finding Based Detections General Availability

Overview  We’ve come a long way, folks, but here in Enterprise Security 8.4 I’m happy to announce Finding ...

Get Your Hands Dirty (and Your Shoes Comfy): The Splunk Experience

Hands-On Learning and Technical Seminars  Sometimes, you just need to see the code. For those looking for a ...