定制 jkaan/monolog-splunk-time-processor 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jkaan/monolog-splunk-time-processor

Composer 安装命令:

composer require jkaan/monolog-splunk-time-processor

包简介

README 文档

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.

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-01