PHPackages                             we-push-it/yii2-splunk-log-target - 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. we-push-it/yii2-splunk-log-target

ActiveYii2-extension[Logging &amp; Monitoring](/categories/logging)

we-push-it/yii2-splunk-log-target
=================================

Yii 2 log target which can log to Splunk Enterprise via curl

1.0.1(6y ago)12.0k[1 issues](https://github.com/we-push-it/yii2-splunk-log-target/issues)[1 PRs](https://github.com/we-push-it/yii2-splunk-log-target/pulls)MITPHP

Since Dec 29Pushed 2y ago2 watchersCompare

[ Source](https://github.com/we-push-it/yii2-splunk-log-target)[ Packagist](https://packagist.org/packages/we-push-it/yii2-splunk-log-target)[ Docs](https://github.com/we-push-it/yii2-splunk-log-target)[ RSS](/packages/we-push-it-yii2-splunk-log-target/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

yii2-splunk-log-target
======================

[](#yii2-splunk-log-target)

Allows you to to send logs to your Splunk Enterprise.

Installation
------------

[](#installation)

```
composer require "we-push-it/yii2-splunk-log-target"

```

Usage
-----

[](#usage)

In order to use `SplunkTarget` you should configure your `log` application component like the following:

```
return [
    // ...
    'bootstrap' => ['log'],
    // ...
    'components' => [
        // ...
        'log' => [
            'targets' => [
                [
                    'class' => wepushit\log\SplunkTarget::class,

                    // It is optional parameter. The message levels that this target is interested in.
                    // The parameter can be an array.
                    'levels' => ['error', 'warning'],
                ],
                // ...
            ],
        ],
    ],
];
```

you can also combine your log targets:

```
'log' => [
    'traceLevel' => YII_DEBUG ? 3 : 0,
    'targets' => [
        [
            'class' => yii\log\FileTarget::class,
            'levels' => ['error', 'warning'],
        ],
        [
            'class' => wepushit\log\SplunkTarget::class,
            'levels' => ['error', 'warning']
        ],
    ],
],
```

additionally you should adjust your params-config:

```
return [
    // ...
    'splunk' => [
        'host' => isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'example server',
        'token' => 'token from your Splunk HTTP Event Collector',
        'url' => 'https://example.com:8088/services/collector/event',
        'source' => 'example',
        'sourcetype' => 'yii-errorhandler',
    ],
];
```

Standard usage:

```
Yii::info('Info message');
Yii::error('Error message');
```

###  Health Score

25

↓

LowBetter than 35% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2380d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/74530779e1a32f86c6843e75771bc503c6fe1fd4b2351d60664888728ad2062f?d=identicon)[Domi-cc](/maintainers/Domi-cc)

---

Top Contributors

[![Domi-cc](https://avatars.githubusercontent.com/u/2371256?v=4)](https://github.com/Domi-cc "Domi-cc (2 commits)")[![cebe](https://avatars.githubusercontent.com/u/189796?v=4)](https://github.com/cebe "cebe (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

logextensionyiisplunk

### Embed Badge

![Health badge](/badges/we-push-it-yii2-splunk-log-target/health.svg)

```
[![Health](https://phpackages.com/badges/we-push-it-yii2-splunk-log-target/health.svg)](https://phpackages.com/packages/we-push-it-yii2-splunk-log-target)
```

###  Alternatives

[samdark/yii2-psr-log-target

Yii 2 log target which uses PSR-3 compatible logger

841.9M14](/packages/samdark-yii2-psr-log-target)[lav45/yii2-activity-logger

Tools to store user activity log for Yii2

3460.8k](/packages/lav45-yii2-activity-logger)[kriss/yii2-log-reader

Yii2 log reader

1242.9k1](/packages/kriss-yii2-log-reader)

PHPackages © 2026

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