Dashboards & Visualizations

Two lookups in a realtime dashboard?

pde
Path Finder

I have a configuration with two lookups on the same source of data. One lookup associates a numeric field, AccountID, with a two letter CHAINCODE. The second lookup associates the CHAINCODE with a CHAINNAME, which is a string of arbitrary length.

I then have a search that looks like this:

host=*prod* sourcetype="statslog" getsingleavailability | chart count, avg(exec_time) as avg_exec by  CHAINNAME | eval round_exec=round(avg_exec) |  fields CHAINNAME, count, round_exec | sort - round_exec | rename ACCT_NAME as Hotel, round_exec as "Average Avail Response Time (ms)", count as Transactions, CHAINNAME as Chain

When I run this search from the toolbar or as a saved search, realtime results are displayed as expected.

If I add a panel containing this realtime saved search to a simple dashboard, the results panel never gets past "Waiting for search preview results".

If I modify the search so it charts by CHAINCODE (from the first lookup) instead of CHANNAME (from the second), results do get displayed in the realtime dashboard view.

Any clues?

1 Solution

steveyz
Splunk Employee
Splunk Employee

In general, we don't support chaining of automatic lookups as they are not guaranteed to be executed in any particular order. Try making the CHAINNAME lookup explicit in your search rather than having it in props.conf. E.g.

host=*prod* sourcetype="statslog" getsingleavailability | lookup chainname_table CHAINCODE OUTPUT CHAINNAME | chart count, avg(exec_time) as avg_exec by  CHAINNAME

View solution in original post

steveyz
Splunk Employee
Splunk Employee

In general, we don't support chaining of automatic lookups as they are not guaranteed to be executed in any particular order. Try making the CHAINNAME lookup explicit in your search rather than having it in props.conf. E.g.

host=*prod* sourcetype="statslog" getsingleavailability | lookup chainname_table CHAINCODE OUTPUT CHAINNAME | chart count, avg(exec_time) as avg_exec by  CHAINNAME

pde
Path Finder

Makes sense. Thanks!

0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...