Splunk Search

Filter records from Table based on a column value as a number

nits
Explorer

Here is my Splunk Query:

index=test "Entry Done for Id=" | rex field=_raw Id=(?<Id>.*?)# | rex field=_raw UserID=(?<UserId>.*?)# | rex field=_raw Amount=(?<Amount>.*?)# | rex field=_raw PercentageAmount=(?<PercentageAmount>.*?)# 
| stats list(Id) as "Unique Id" list(UserID) as "User ID" list(Amount) as "Given Amount" list(PercentageAmount) as "Override Amount"
| table "Unique ID" "User ID" "Given Discount" "Override Amount"

I want to filter those records from this table which has 
Given Amount>50.00 OR Override Amount>90.00
Note:  Given Amount and Override Amount can be in decimal.

Labels (4)
0 Karma

manjunathmeti
Champion

Add the below query at the end of your search.

| search "Given Amount">50.00 OR "Override Amount">90.00

 

If this reply helps you, an upvote/like would be appreciated.

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