Splunk Search

How can I count lines?

LauraBre
Communicator

hello,

This is my search:

source=tcp:5555 PURCH_DAY=06-14 PURCH_DATE=19  PURCH_MIN>44 | stats count by ID_CARDHOLDER| sort - count | where count>=5|rangemap field=count severe=10-50 elevated=3-9 default=low

My problem is that I don't able to count the number of lines that my search returns. I want to apply my rangemap on the number of lines but I don't know how I can do it because I try count(_raw) but I don't use it correctly I think.

Thx by advance,

Laura

Tags (1)
0 Karma
1 Solution

kristian_kolb
Ultra Champion
... |stats sum(linecount) AS MyTotalLines | ...

/kristian

View solution in original post

kristian_kolb
Ultra Champion
... |stats sum(linecount) AS MyTotalLines | ...

/kristian

LauraBre
Communicator

No, I want to count the total lines that my search returns, not indivduals raw events.

0 Karma

Ayn
Legend

Number of lines in what? Individual raw events? Have you checked the linecount property?

Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...