PHPackages                             flyandi/monolog-splunk-handler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. flyandi/monolog-splunk-handler

ActiveBundle[Logging &amp; Monitoring](/categories/logging)

flyandi/monolog-splunk-handler
==============================

Monolog Splunk Handler based on easylo wrapper

062PHP

Since Apr 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/flyandi/monolog-splunk-handler)[ Packagist](https://packagist.org/packages/flyandi/monolog-splunk-handler)[ RSS](/packages/flyandi-monolog-splunk-handler/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Monolog Splunk Handler
======================

[](#monolog-splunk-handler)

Simple monolog wrapper for the Easylo Splunk SDK.

*Install*

```
composer require flyandi/monolog-splunk-handler
```

*How to use*

```
use flyandi/Monolog/Handler/SplunkHandler;
```

*Invoke Handler*

```
$handlers[] = new SplunkHandler(
    (string) ,
    (array, optional) ,
    (array, optional) ,
    (const, optional) level,
    (boolean, optional) bubble
);
```

Connection Parameters
---------------------

[](#connection-parameters)

Connection parameter is an array with various options. It supports all connection variants for Splunk including user and token authentication.

**username**: (optional) The username to login with. Defaults to "admin".

**password**: (optional) The password to login with. Defaults to "changeme".

**token**: (optional) The authentication token to use. If provided, the username and password are ignored and there is no need to call login(). In the format `Splunk SESSION_KEY`.

**host**: (optional) The hostname of the Splunk server. Defaults to "localhost".

**port**: (optional) The port of the Splunk server. Defaults to 8089.

**scheme**: (optional) The scheme to use: either "http" or "https". Defaults to "https".

**namespace**: (optional) Namespace that all object lookups will occur in by default. Defaults to `Splunk_Namespace::createDefault()`.

**http**: (optional) An Http object that will be used for performing HTTP requests. This is intended for testing only.

Optional Parameters
-------------------

[](#optional-parameters)

Optional parameters are included in every log. This is useful if you want to log additional items like user or session data.

*Example*

```
    $data = [
        "user" => "Foo",
        "environment" => "Production",
        "version" => "1.0",
        "remoteBrowser" => $env["HTTP_USER_BROWSER"]
    ];
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c851b89ed7f455a631ba82127f6d64b49bf95fb2737c761df1eb5cac00c85610?d=identicon)[flyandi](/maintainers/flyandi)

### Embed Badge

![Health badge](/badges/flyandi-monolog-splunk-handler/health.svg)

```
[![Health](https://phpackages.com/badges/flyandi-monolog-splunk-handler/health.svg)](https://phpackages.com/packages/flyandi-monolog-splunk-handler)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B10.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M262](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M315](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
