Dashboards & Visualizations

Why am I Not able to fetch record Count?

aditsss
Motivator

Hi Team,

Below are my raw logs:

2023-08-08 10:25:13.067 [INFO ] [Thread-3] CollateralProcessor - Server side call completed for Collateral with record count:   476

2023-08-08 09:56:03.777 [INFO ] [Thread-3] CollateralProcessor - Server side call completed for Collateral with record count:  18541701

I am using below query to fetch the number

 

index="abc" sourcetype =600000304_gg_abs_ipc2 source="/amex/app/gfp-settlement-transform/logs/gfp-settlement-transform.log" "Server side call completed for Collateral with record count"| rex "Server side call completed for Collateral with record count :(?<record>\d+)"|timechart span=1d values(record) AS RecordCountdate.PNG

I am not getting record count just date. Can someone guide here

Labels (2)
Tags (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Regular expressions must be precise.  A misplaced space or two, while insignificant to a human, may make the difference between a matching event and a non-matching event.  Try this rex command in place of the original.

| rex "Server side call completed for Collateral with record count:\s+(?<record>\d+)"

 

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Regular expressions must be precise.  A misplaced space or two, while insignificant to a human, may make the difference between a matching event and a non-matching event.  Try this rex command in place of the original.

| rex "Server side call completed for Collateral with record count:\s+(?<record>\d+)"

 

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...