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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...