Splunk Search

Values of a field inside table

rishiehari
Explorer

Current Sample Event :
Dec 4 02:11:19: Span id: 26, status: No Signal ( e1, slot 5 #3 )

Current Sample Query :
.. | rex field=_raw "status: (?[^(]+)" | rex field=_raw "e1, (?[^#]+) #(?[^)]+)" | table circuit,slot,status

Current Sample Output :
circuit slot status
1 0 slot 2 Remote Loss of Sync
2 0 slot 3 No Signal
3 1 slot 3 OK
4 2 slot 1 Remote Loss of Sync

Expected Output :

Slot->    1    2    3    4    5
Circuit
|
1         Loss OK   NO  Loss  OK       
2         No  Loss  OK   NO  Loss
3         OK   NO  Loss  OK   NO
4         Loss OK   NO   Loss  NO

I'm looking at arriving at a similar table so that I can use *.js to put up colors in the table so that a person can identify for the circuits failed in the slot in a single stroke

Thanks

0 Karma

rishiehari
Explorer

Im sorry. This question was a repetition. The answer is I must be using CHART instead of table.

.. | chart values(status) by circuit,slot

is the solution. Thanks everyone.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...