Dashboards & Visualizations

how do I format the table output as below

tnguyen125
New Member

index=source a1 OR a2 OR a3 OR a4 OR a5

how do I list the result them as

Application Count
a1 23
a2 54
a3 73
a4 52
a5 56
Total 258

Tags (1)
0 Karma

HiroshiSatoh
Champion

I think it would be better to use a lookup table.

ex.)
applications.csv

application_id,application_name
a1,app1
a2,app2
a3,pp3
a4,pp4
a5,app5

index=source a1 OR a2 OR a3 OR a4 OR a5
 |stats count by Application 
 |lookup applications.csv application_id as Application
 |addcoltotals labelfield=Application_name label=Total count
 |fields - Application 

※Correct the field name correctly.

0 Karma

tnguyen125
New Member

index=source 0oamhvpskG93fy30b297 OR amhpp7ohgExCpYDx51478
|stats count by Application
|lookup applications.csv application_id as Application
|addcoltotals labelfield=Application_name label=Total count
|fields - Application

Hello HiroshiSatoh,
My search above returns:
Error in 'lookup' command: Lookups: The lookup table 'applications.csv' does not exist or is not available.
The search job has failed due to an error. You may be able view the job in the Job Inspector.

5.3k ● 5 ● 5 ● 9

5.3k ● 5 ● 5 ● 9

0 Karma

HiroshiSatoh
Champion

You should do your own lookup table creation and lookup definition.

http://docs.splunk.com/Documentation/Splunk/7.1.2/Knowledge/Aboutlookupsandfieldactions

0 Karma

tnguyen125
New Member

Hi HiroshiSatoh, it does not work

0 Karma

HiroshiSatoh
Champion

Try this!

index=source a1 OR a2 OR a3 OR a4 OR a5
|stats count by Application 
|addcoltotals labelfield=Application label=Total count
0 Karma

tnguyen125
New Member

a1,a2,a3,a4,a5 are the application id's. How do I name them as applications ?
a1 = app1
a2 = app2
a3 = app3
a4 = app4
a5 = app5

the output will be like this:

app1 23
app2 54
app3 73
app4 52
app5 56
Total 258

0 Karma

tnguyen125
New Member

current search that i have below. This search only give me the total events , not categorize by application
index=source a1 OR a2 OR a3 OR a4 OR a5 | timechart span=1d count | sort -_time

0 Karma

tnguyen125
New Member

a1,a2,a3,a4,a5 are the application id's. How do name them as applications ?

0 Karma

adonio
Ultra Champion

can you share a sample of your data?

0 Karma

adonio
Ultra Champion

try this:
index=source a1 OR a2 OR a3 OR a4 OR a5 | timechart span=1d count by application

0 Karma

tnguyen125
New Member

Hi Adorio, it does not work

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!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...