GitXplorerGitXplorer
p

Log-Log4perl-Appender-Elasticsearch

public
0 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
2db4cd17a7d82c0fa88c96b32162a7a9bb04f6ad

extend travis ci perl setting by 5.2{6,8}

committed 5 years ago
Unverified
8d6bab904acedacdb8c23fa5d86eb6ff1d92a334

remove depricated sudo: false

committed 5 years ago
Unverified
c6abe724d8f5a30f2f74f7657c1ef99d7c7c3dbe

requires version

committed 8 years ago
Unverified
9f470d898369c439090d0c84503a073c3a2c08ab

changes

committed 8 years ago
Unverified
b2f57a1f27658e42d4e27a64bf93d78b26f1321b

cleanup

committed 8 years ago
Unverified
24932ccf3244503b052f0962b870551581dbe3d6

reverse changelogs

committed 8 years ago

README

The README file for this repository.

Log::Log4perl::Appender::Elasticsearch - Log to Elasticsearch

CPAN version Build Status Coverage Status

This package contains two modules, that provide ability to write log entries to Elasticsearch.

  • Log::Log4perl::Appender::Elasticsearch sends log entries via Index API.

  • Log::Log4perl::Appender::Elasticsearch::Bulk does the same task by using Bulk API.

use Log::Log4perl;

Log::Log4perl->init(\<<'HERE');
log4perl.logger=DEBUG, ES

log4perl.appender.ES = Log::Log4perl::Appender::Elasticsearch
log4perl.appender.ES.layout = Log::Log4perl::Layout::NoopLayout

log4perl.appender.ES.body.level = %p
log4perl.appender.ES.body.module = %M
log4perl.appender.ES.body.line = %L

log4perl.appender.ES.nodes = localhost:9200
log4perl.appender.ES.index = log4perl
log4perl.appender.ES.type = entry

log4perl.appender.ES.use_https = 0
log4perl.appender.ES.user_agent.timeout = 5

log4perl.appender.ES.headers.User-Agent = foo
HERE

Log::Log4perl::get_logger()->info("OK");