Splunk Search

how to sum everyday result

ypfbkg
Explorer

this is my search srcipt, it will show everyday use some apps count

sourcetype="acclog" app="molly" OR app="wms" |timechart span="1d" dc(IP) as visitor by app |sort visitor

the result like

_time   Molly   wms

12-7-10 22 265

12-7-11 3 22

how can i sum the total count, like below

app counter

Molly 25

wms 287

Could someone can help me ? Thanks.

Tags (2)
0 Karma
1 Solution

kallu
Communicator

Ah ... missed your point completely. In that case you can use eval to create a new field with IP and date combined.

... | eval X=IP.date_year.date_month.date_mday | stats dc(X) as visitor by app | ...

View solution in original post

0 Karma

kallu
Communicator

Ah ... missed your point completely. In that case you can use eval to create a new field with IP and date combined.

... | eval X=IP.date_year.date_month.date_mday | stats dc(X) as visitor by app | ...

0 Karma

ypfbkg
Explorer

Kallu, thanks your help.

yes, this is what i want ^___^

0 Karma

kallu
Communicator


... | stats dc(IP) as visitor by app | sort visitor

0 Karma

ypfbkg
Explorer

i try this , but it didn't count erveyday. if some IP is in
2 day, it's counter will be "1", but i want 2

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...