Splunk Search

Timechart prepends "VALUE' to table header values

trodenbaugh
Explorer

I'm trying to use a timechart function to display folder names and their sizes over time. When I do this, the string "VALUE" is prepended to each of the table header values.

My search:

| timechart span=2h max(DirectorySize) by FolderName

The data is displayed correctly but the series values have the string "VALUE" prepended to them. Example:
_time OTHER VALUE_folder1 VALUE_folder2 VALUE_folder3

Also note that my folder names start with an underscore. I'm thinking that may be triggering this behavior.

Any help would be appreciated.

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

This is intended behaviour.

By default, the field values of FolderName become the new field names. However, field names beginning with an underscore denote internal fields that are hidden from view. To avoid this unintentionally hiding all your folder names, VALUE is prepended to your field names.

You can change the outcome like this:

... | timechart ... by FolderName | rename VALUE_* as whatever*

That'll replace all the VALUE_ prefixes with whatever in field names beginning with that prefix.

View solution in original post

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

This is intended behaviour.

By default, the field values of FolderName become the new field names. However, field names beginning with an underscore denote internal fields that are hidden from view. To avoid this unintentionally hiding all your folder names, VALUE is prepended to your field names.

You can change the outcome like this:

... | timechart ... by FolderName | rename VALUE_* as whatever*

That'll replace all the VALUE_ prefixes with whatever in field names beginning with that prefix.

0 Karma

trodenbaugh
Explorer

That works - very easy solution. Thanks.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...