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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...