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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.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 ...