Dashboards & Visualizations

How to redirect the hyperlinks for two two fields

aditsss
Motivator

Hi Everyone,

I have one requirement.

I have two types of logs 

1st log which contains the field as Identifier 7bb86db9-8268-19a1-0000-0000648141a2 

2020-10-12 12:44:51,553 ERROR [Timer-Driven Process Thread-2] o.a.StandardProcessGroup Failed to synchronize StandardProcessGroup[identifier=7bb86db9-8268-19a1-0000-0000648141a2] with Flow Registry because could not 24579813-d2a3-4d67-892f-11b5838011af in bucket 9d407076-db0a-4587-b8e7-51be45d8c193
host = lpdosputb50088.phx.aexp.com identifier = 7bb86db9-8268-19a1-0000-0000648141a2  source = /var/log/nifi/nifi-app.log

2nd logs contains the field as ID id = 21aa3004-1d9d-1679-9d43-b623891ef191

ADS_Id = initRequest_Type = atRequest_URL = org.apache..AbstractProcessor.onTrigger(AbstractProcessor.java:27) id = 21aa3004-1d9d-1679-9d43-b623891ef191

Both id and Identifier are extracted. I have concate Identifier and id  made a new field id2.

Below is my search query for that.

index=abc sourcetype=xyz error
| rex field=_raw "ERROR(?<Error_Message>.*)"
| rex field=Error_Message "Failed(?<Message>.*)"
| eval Message="Failed".Message
|strcat id identifier id2|eval ClickHere= "https://abc.fgh.com/hjk/?processGroupId=".identifier
| table _raw identifier id2 ClickHere
| join type=outer id2[dbxquery query="SELECT id id2, parent_chain, url FROM parent_chains;" connection="SQL"]</query>
<earliest>-7d@h</earliest>
<latest>now</latest>
<sampleRatio>1</sampleRatio>
</search>
<fields>"_raw", "identifier","parent_chain","url"</fields>
<option name="count">100</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">cell</option>
<option name="percentagesRow">false</option>
<option name="refresh.display">progressbar</option>
<option name="rowNumbers">false</option>
<option name="totalsRow">false</option>
<option name="wrap">true</option>
<drilldown>
<condition field="identifier">
<link target="_blank">$row.ClickHere|n$</link>
</condition>
</drilldown>

I have created one hyperlink ClickHere and set the drill-down condition with Identifier.

Clicking on Identifier Its taking me to correct hyperlink.

But I don't want to display Identifier column I want to display id2 column and clicking on id2 column it should take me to the hyperlink where its taking to me with Identifier.

But for id2 its not working. Can someone guide me where I have gone wrong.

Thanks in advance.

Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Try something like this

<link target="_blank">https://abc.fgh.com/hjk/?processGroupId=$row.identifier|n$</link>

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Try something like this

<link target="_blank">https://abc.fgh.com/hjk/?processGroupId=$row.identifier|n$</link>

aditsss
Motivator

@ITWhisperer

Once Again Thank you so much.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...