Splunk Search

How to generate a regex to find text and values greater than or equal to 2000001?

kalais
New Member

Hi ,
I have in my log like
{"name":"liquid-networth","value":"2000001"}

I need to get all value which is greater than and equal to 2000001. Please help me to find in splunk search..

0 Karma

woodcock
Esteemed Legend

Like this:

index=YourIndexHere sourcetype=YourSourcetypeHere | spath | search value >= 2000001

Note: the spath command might create a field name with other prefices for value so it may not have that exact name.

0 Karma

micahkemp
Champion

You can use >= in your search, assuming you have "value" parsed out into a field already:

index=(your index) value >= 2000001
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...