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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...