Reporting

Can I add a filter or somehow manage my Report by month?

kennethtran
New Member

I have a Population extract of all employees but want to create a report or only extract the ones that were hired in a certain month e.g. getting a report of all employees hired during the month of March. Can I input a filter or something on a report?

Tags (1)
0 Karma
1 Solution

adonio
Ultra Champion

try something like this:

... search that creates your report ... 
| eval month_year_of_hire = strftime(strptime(hire_date,"%m/%d/%Y"),"%m-%Y")
| eval full_name = first_name." ".last_name
| stats values(full_name) as employees by month_year_of_hire
| where month_year_of_hire = "Whatever you need here"

please note that you will probably need to modify the fields name i chose randomly to match your field names

View solution in original post

0 Karma

adonio
Ultra Champion

try something like this:

... search that creates your report ... 
| eval month_year_of_hire = strftime(strptime(hire_date,"%m/%d/%Y"),"%m-%Y")
| eval full_name = first_name." ".last_name
| stats values(full_name) as employees by month_year_of_hire
| where month_year_of_hire = "Whatever you need here"

please note that you will probably need to modify the fields name i chose randomly to match your field names

0 Karma

adonio
Ultra Champion

how does your data looks like?

0 Karma

kennethtran
New Member

My current report of employees has all the first name, last name, work place, managers, ID, emails, and hire date, etc. if that helps.

0 Karma

adonio
Ultra Champion

what is the format of the hire data?

0 Karma

kennethtran
New Member

It is written like this 04/24/2019 for April 24th and so on.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...