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!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...