This supporting add-on provides one command -- holidays. A wrapper for python-holidays (https://github.com/dr-prodigy/python-holidays) providing holidays, business days, and business holidays when presented a _time (or specified) field.
A wrapper for for the python library python-holidays (https://github.com/dr-prodigy/python-holidays) to enrich existing data with timestamps to know if the given timestamp is a holiday, business day, or business holiday (a holiday that occurs on a normal business day). Default settings: country is set to US and timestamp is expected in the _time field. This can be helpful for a number of reasons but often for predictions or forecasts as those days usually will mean a difference in the model, especially those holidays that land on a business day.
Supported country, state, and province codes can be found listed on https://github.com/dr-prodigy/python-holidays/blob/master/README.rst
search * | holidays [timefield=<field>] [country=<string>] [province=<string>] [state=<string>] [business_days=<comma_sep_int>] [custom_holiday=<date>]
Description: The field containing the timestamp in unix epoch, normally this is _time which is the default if not set.
Usage: i.e. timefield=timestamp
Description: Country code string from https://github.com/dr-prodigy/python-holidays/blob/master/README.rst, defaults to US
Usage: i.e. country=DE
Description: State code string from https://github.com/dr-prodigy/python-holidays/blob/master/README.rst, defaults to none
Usage: i.e. state=CA
Description: Province code string from https://github.com/dr-prodigy/python-holidays/blob/master/README.rst, defaults to none
Usage: i.e. country=DE province=BW
Description: Defaults to Monday-Friday (1-5) but if different days are business days they can be specified using numbers (Saturday and Sunday are 6 and 7 respectively)
Usage: i.e. business_days="2,3,4,5,6,7"
Description: Ability to supply a date string for a non-standard holiday.
Usage: i.e. custom_holiday="2020-01-16"
1: Enrich existing _time field with US holidays
* | holidays
2: Enrich existing _time field with US holidays in California
* | holidays state=CA
3: Add custom holiday
* | holidays custom_holiday="Jan 16,2020"
4: Hong Kong holidays
* | holidays country=HK
5: Baden-Württemberg province in Germany holidays
* | holidays country=DE province=BW
Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.
As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.