Dashboards & Visualizations

passing a field_value through drilldown search other than click.value

smolcj
Builder

Hi,
i have a table listing 2 fields field1 and field2, its search is like index=main source=src.txt field1=* | table field1 field2
here the log format is almost similar to
timestamp field1 bla bla bla

and field2 i some duration calculated using eval command(this is the reason i need a drilldown option here )
and field1 will be like
apple[1]
apple[2]
apple[3]
etc
i have extrated this 1,2,3 values in a field called Field1_number
how can include this Field1 value in the search(i need this to show the thread number apple[1] drill down should be all the events under thread no 1 it can be ball[1] bab[1] etc)
The drilldown search i am using is like

/app/myapp/flashtimeline?q=source=$form.sources$ thread_no=* OR field1="$click.value$" | sort -_time 

how can i substitute thread_no ?
shall i use a regex command
....| rex field=field1 (?\d)
but i am not able to append it to a search
...|search thread_no=threadno OR field1="$click.value$" |sort....
please correct my query
thank you

Tags (1)
0 Karma

Leo
Splunk Employee
Splunk Employee

If you put that regex command in the search query populating your table, then you should be able to get the value of threadno by putting $row.threadno$ into the drilldown link.

smolcj
Builder

Thankss Leo it is working fine as you told. but if i don't want to display threadno i the table, how can i get that value in drilldown i tried appending
"table threadno field1 field2 | fields - threadno"
then in drilldown $row.threadno$ is not substituting the value
please help

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 ...