jkaan / monolog-splunk-time-processor
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/jkaan/monolog-splunk-time-processor
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is not auto-updated.
Last update: 2025-12-27 03:46:19 UTC
README
Install
$ composer require "jkaan/monolog-splunk-time-processor"
Usage
The example highlights using this processor with Monolog.
$monolog->addProcessor(new SplunkTimeProcessor());
All records that you send through Monolog will have a time key added to record.
This time key contains the current date in ISO8601 format with milliseconds accuracy.
Why?
When logging JSON data to Splunk, by default, it separates log events based on time.
If you don't include a time key as the first key multiple log events could possibly be categorised as one row in Splunk.