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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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