Installation

Limit to display the maximum length of string for _raw field using queries from search head

SplunkDash
Motivator

Hello, 

I have events with different lengths for _raw field within the same source. I would need to limit/minimize the length of _raw field in some case. How I would limit  the  maximum length of string that would display for _raw field using queries from search head. Any help will be greatly appreciated, Thank you so much

Labels (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Are you looking for something like this?

... | eval _raw = substr(_raw, 1, min(len(_raw),80))
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Are you looking for something like this?

... | eval _raw = substr(_raw, 1, min(len(_raw),80))
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...