Splunk Search

Create data table conditinally

dhirendra761
Contributor

My logs are below content :

Export of US successfully transferred to FR
Import successfully ended on US from export of FR with exit code 0
Export successfully ended on SP with exit code 0 

means that
* file created on FR server was copied into the server of FR : OK
*the DATA from FR was added to US : OK

based on below logs I Need to create below table.

++++Exports+++

GE SP FR UK

GE Blank OK OK KO

SP OK Blank OK KO

FR OK OK Blank OK

UK OK OK OK Blank

Is it possible to create table like this. Export is table and bold tags are rows and columns of table.
I am trying a lot, but not succeeding. Any help will be appreciated.

Tags (2)
0 Karma
1 Solution

493669
Super Champion

As already stated,
if you want to make blank for same field values try where/search condition like below-

|where File_Created!=File_Copied| maketable File_Created,File_Copied,count| rename File_Created as Country

View solution in original post

493669
Super Champion

As already stated,
if you want to make blank for same field values try where/search condition like below-

|where File_Created!=File_Copied| maketable File_Created,File_Copied,count| rename File_Created as Country
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...