Dashboards & Visualizations

trelli graph dynamic y axis label

jhuysing
Explorer

Using a lookup to enrich a trellis graph.
initially  added the text to the split by value  which works ok.
until you do a drilldown
Is there someway inert the text as the y-axis  title

Or is the there a way in search on the linked drilldown  dashboard to strip the text from the passed value

Labels (3)
0 Karma

jhuysing
Explorer

Stripped  back source

| eval NewTime=strptime(BATCH_DATE, "%d/%m/%Y %H:%M:%S %Z") 
| eval _time=NewTime 
| rex field=ROW_SUB_HEADER ".*:\s(?P<Code>\d{3})" 
| rename ROW_HEADER as Site, DATA_VALUE as Value
| lookup fault_codes Code OUTPUT Phrase 
| eval CodePhrase = Code+" -- "+Phrase
| chart max(Value) as Value over _time by CodePhrase limit=100</query>

chart options removed

        <drilldown>
          <link target="_blank">/app/production/site_process_code?code=$trellis.value$</link>
        </drilldown>
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Can you share the SimpleXML you already have so we can see what you are working with?

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!

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...