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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...