Dashboards & Visualizations

passing a field_value through drilldown search other than click.value

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

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.

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