Splunk Search

command to check if a field is binary

brdr
Contributor

does splunk have a command that can check to see if a field is binary or has binary characters in it?

Tags (1)
0 Karma
1 Solution

jowenssi
Path Finder

Can you be more specific?

It sounds like you need a regular expression. The only binary characters are "0" and "1".

This regex would match binary characters: "[01]+"

View solution in original post

0 Karma

brdr
Contributor

Hey @jowenssi.... to be specific I was curious if there is a Splunk command, that when passed an argument to it, it would check if there are any binary characters in it. For example, we are presently looking for any malformed file names.

I did find this article (using regular expressions) to help me with what I was looking for. Thank you for your answer.

https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9781449327453/ch06s03.ht...

thank you.

0 Karma

jowenssi
Path Finder

Can you be more specific?

It sounds like you need a regular expression. The only binary characters are "0" and "1".

This regex would match binary characters: "[01]+"

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...