Splunk Search

How make a count from different weeks

justeso1
Loves-to-Learn Everything

I need a search that shows me the count of the produtcs weekly 

 

products       countfromweek1    countfromweek2     date 

product1                   10                                 6                        2020-09-07 to 2020-09-13

product2                   20                                16                      2020-09-14 to 2020-09-21

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
-- your search
| bin span=1w _time
| stats count by product, _time

Not sure what the date column is supposed to relate to in your example

0 Karma

justeso1
Loves-to-Learn Everything

I need to create a table that shows me the total count from last 3 weeks. Like: 

 

Produtcs   Total Count from week1  Total count from week2 

A                                 14                                           10

B                                  5                                             8

C                                  8                                             3

 

 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

How to find the worst searches in your Splunk environment and how to fix them

Everyone knows Splunk is a powerful platform for running searches and doing data analytics. Your ...

Share Your Feedback: On Admin Config Service (ACS)!

Help Us Build a Better Admin Config Service Experience (ACS)   We Want Your Feedback on Admin Config Service ...

Build the Future of Agentic AI: Join the Splunk Agentic Ops Hackathon

AI is changing how teams investigate incidents, detect threats, automate workflows, and build intelligent ...