Splunk Search

Alias names in chart

adityapavan18
Contributor

Hi

I have a bar chart (productID's mapped onto number of events).

productId's are the product codes(numbers) retrived from a field called ProID

like ProID = 1234 count = 3
ProID = 1789 count = 4

and every ProID is mapped to a Productname but not present in logs

I used (* | top ProID) by bar chart

Using basic chart diagrams i am able to build a chart where they show proper results.

My question is , Is ther any way to show ProductName instead of ProductId in the chart , i mean alias name for codes in chart

Eventhough the chart shows ProID by count, i need to show it by proName to count

0 Karma
1 Solution

lguinn2
Legend

I suggest that you consider using a Lookup to retrieve the product names. You can tell Splunk to lookup a ProductName based on the ProID.

Take a look at the Lookup section in the Knowledge Management manual here

You could either build a CSV (comma separated values) file of ProID and ProductName, or you could write a script that looks up the product names.

Finally, there are lots of questions and answers about lookups in this forum, so look here if you have more questions later!

View solution in original post

lguinn2
Legend

I suggest that you consider using a Lookup to retrieve the product names. You can tell Splunk to lookup a ProductName based on the ProID.

Take a look at the Lookup section in the Knowledge Management manual here

You could either build a CSV (comma separated values) file of ProID and ProductName, or you could write a script that looks up the product names.

Finally, there are lots of questions and answers about lookups in this forum, so look here if you have more questions later!

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!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...