Splunk Search

Sales of each weekday by week number for month of December

rajakabdual
New Member

hi i need the December month sales by week number , given below i am sharing my index name and other fileds name also.

index= sales sourcetype=csv source= sales_new.csv and fields are date_month ,date_wday,Sales

Tags (1)
0 Karma
1 Solution

p_gurav
Champion

You can use :

 index= sales sourcetype=csv source= sales_new.csv date_month=december | timechart  span=1w count | eval day=strftime(_time,"%d") | eval week_number=floor(day/7)+1

View solution in original post

0 Karma

p_gurav
Champion

You can use :

 index= sales sourcetype=csv source= sales_new.csv date_month=december | timechart  span=1w count | eval day=strftime(_time,"%d") | eval week_number=floor(day/7)+1
0 Karma

rajakabdual
New Member

Hi P_gurav, thank you for the grate help its working fine and i am looking for the same.

0 Karma

deepashri_123
Motivator

Hey rajakbdual,

Can u try something like this:
index=sales sourcetype=csv source=sales_new.csv date_month=december | timechart span=1w Sales

Let me know if this helps!!

0 Karma

rajakabdual
New Member

Hey deepashri,
sorry i am getting the error at |timechart span=1w Sales

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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...