Splunk Search

How to name NULL column

nlrdy
Explorer

Hello,

I'm a new user to splunk and want to know how to name a NULL column. For example, see below query.

index=ac_web sourcetype=access_log response_time > 5 earliest=-7d@d latest=now | timechart span=1h count by cs-uri-stem

When I run this query, I get "NULL" name for the second column. How can I name it ?

Thank you all !!

Tags (1)
0 Karma
1 Solution

snoobzilla
Builder

Try fillnull....

index=ac_web sourcetype=access_log response_time > 5 earliest=-7d@d latest=now
| fillnull value=MyNullName cs-uri-stem
| timechart span=1h count by cs-uri-stem

View solution in original post

naidusadanala
Communicator

Hi you can also do it by using tostring
eval cs-uri-stem=tostring(cs-uri-stem)

The above returns value to "Null"(in most of the cases)

then

|time span=1h count by cs-uri-stem

You can choose any method to so

0 Karma

snoobzilla
Builder

Try fillnull....

index=ac_web sourcetype=access_log response_time > 5 earliest=-7d@d latest=now
| fillnull value=MyNullName cs-uri-stem
| timechart span=1h count by cs-uri-stem

Get Updates on the Splunk Community!

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...

Splunk AppDynamics Agents Webinar Series

Mark your calendars! On June 24th at 12PM PST, we’re going live with the second session of our Splunk ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2025 SplunkTrust is officially open! If you ...