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!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...