Monitoring Splunk

In DMC, how is the Instance page populated?

lycollicott
Motivator

What is the query/rest call to create the list?

Tags (2)
0 Karma
1 Solution

harsmarvania57
Ultra Champion

Hi @lycollicott,

In DMC, Instance page is using dmc_instances_view_default_search(1) macro and this is the query.

 |  inputlookup dmc_assets | search search_group = $group$ | mvcombine search_group | join type=outer peerURI [| rest splunk_server=local /services/search/distributed/peers | rename title as peerURI ] | join type=outer peerURI [| rest splunk_server=local /services/server/info | eval peerURI = "localhost" | eval status = "Up"] | join peerURI [| `dmc_get_instance_roles` ] | eval status = if(status == "Up", status, "Unreachable") | eval Action = serverName." ".role | eval OS = os_name | eval ram = round(physicalMemoryMB / 1024, 2)." GB" | fields serverName, machine, role, OS, numberOfCores, ram, version, status, Action | sort status, serverName | rename serverName as Instance, machine as Machine, role as Role, numberOfCores as "Cores", ram as RAM, version as Version, status as Status

Are you looking for this?

View solution in original post

0 Karma

harsmarvania57
Ultra Champion

Hi @lycollicott,

In DMC, Instance page is using dmc_instances_view_default_search(1) macro and this is the query.

 |  inputlookup dmc_assets | search search_group = $group$ | mvcombine search_group | join type=outer peerURI [| rest splunk_server=local /services/search/distributed/peers | rename title as peerURI ] | join type=outer peerURI [| rest splunk_server=local /services/server/info | eval peerURI = "localhost" | eval status = "Up"] | join peerURI [| `dmc_get_instance_roles` ] | eval status = if(status == "Up", status, "Unreachable") | eval Action = serverName." ".role | eval OS = os_name | eval ram = round(physicalMemoryMB / 1024, 2)." GB" | fields serverName, machine, role, OS, numberOfCores, ram, version, status, Action | sort status, serverName | rename serverName as Instance, machine as Machine, role as Role, numberOfCores as "Cores", ram as RAM, version as Version, status as Status

Are you looking for this?

0 Karma

lycollicott
Motivator

Perfect! Switch this to an answer and I'll accept it.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...