All Projects → rfoltyns → Log4j2 Elasticsearch

rfoltyns / Log4j2 Elasticsearch

Licence: apache-2.0
Log4j2 Elasticsearch Appender plugins

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Log4j2 Elasticsearch

Search
PHP search-systems made possible
Stars: ✭ 101 (-5.61%)
Mutual labels:  elasticsearch
Spring Boot 2.x Examples
Spring Boot 2.x code examples
Stars: ✭ 104 (-2.8%)
Mutual labels:  elasticsearch
Flink Learning
flink learning blog. http://www.54tianzhisheng.cn/ 含 Flink 入门、概念、原理、实战、性能调优、源码解析等内容。涉及 Flink Connector、Metrics、Library、DataStream API、Table API & SQL 等内容的学习案例,还有 Flink 落地应用的大型项目案例(PVUV、日志存储、百亿数据实时去重、监控告警)分享。欢迎大家支持我的专栏《大数据实时计算引擎 Flink 实战与性能优化》
Stars: ✭ 11,378 (+10533.64%)
Mutual labels:  elasticsearch
Rsyslog
a Rocket-fast SYStem for LOG processing
Stars: ✭ 1,385 (+1194.39%)
Mutual labels:  elasticsearch
Legacy Search
Demo project showing how to add elasticsearch to a legacy application.
Stars: ✭ 103 (-3.74%)
Mutual labels:  elasticsearch
Spring Cloud Microservices Development
Spring Cloud Microservices Development.《Spring Cloud 微服务架构开发实战》
Stars: ✭ 106 (-0.93%)
Mutual labels:  elasticsearch
Elasticsearch Analysis Openkoreantext
Korean analysis plugin that integrates open-korean-text module into elasticsearch.
Stars: ✭ 101 (-5.61%)
Mutual labels:  elasticsearch
Elasticambari
Elastic Service for Ambari
Stars: ✭ 108 (+0.93%)
Mutual labels:  elasticsearch
Emkc
Engineer Man Knowledge Center
Stars: ✭ 104 (-2.8%)
Mutual labels:  elasticsearch
Twint
An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.
Stars: ✭ 12,102 (+11210.28%)
Mutual labels:  elasticsearch
Elman
Full text searching Linux man pages with Elasticsearch 🐧
Stars: ✭ 103 (-3.74%)
Mutual labels:  elasticsearch
Whatsmars
Java生态研究(Spring Boot + Redis + Dubbo + RocketMQ + Elasticsearch)🔥🔥🔥🔥🔥
Stars: ✭ 1,389 (+1198.13%)
Mutual labels:  elasticsearch
Elasticsearch Reindexing
Elasticsearch plugin for reindexing
Stars: ✭ 106 (-0.93%)
Mutual labels:  elasticsearch
Heygidi
Visualization of the most used words in "Gündem" category at Hurriyet.com.tr within the years.
Stars: ✭ 102 (-4.67%)
Mutual labels:  elasticsearch
Grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
Stars: ✭ 45,930 (+42825.23%)
Mutual labels:  elasticsearch
Windows Installers
Windows installers for the Elastic stack
Stars: ✭ 101 (-5.61%)
Mutual labels:  elasticsearch
Httpbeat
Elastic Beat to call HTTP endpoints
Stars: ✭ 104 (-2.8%)
Mutual labels:  elasticsearch
Haproxy Configs
80+ HAProxy Configs for Hadoop, Big Data, NoSQL, Docker, Elasticsearch, SolrCloud, HBase, MySQL, PostgreSQL, Apache Drill, Hive, Presto, Impala, Hue, ZooKeeper, SSH, RabbitMQ, Redis, Riak, Cloudera, OpenTSDB, InfluxDB, Prometheus, Kibana, Graphite, Rancher etc.
Stars: ✭ 106 (-0.93%)
Mutual labels:  elasticsearch
Mall
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于SpringBoot+MyBatis实现,采用Docker容器化部署。 前台商城系统包含首页门户、商品推荐、商品搜索、商品展示、购物车、订单流程、会员中心、客户服务、帮助中心等模块。 后台管理系统包含商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等模块。
Stars: ✭ 54,797 (+51112.15%)
Mutual labels:  elasticsearch
Search Guard Kibana Plugin
This plugin for Kibana adds session management and multi tenancy to a Search Guard secured cluster.
Stars: ✭ 107 (+0%)
Mutual labels:  elasticsearch

log4j2-elasticsearch overview

Build Status Maven Central codecov contributions welcome

This is a parent project for log4j2 appender plugins capable of pushing logs in batches to Elasticsearch clusters.

Latest released code (1.5.x) is available here.

Project consists of:

  • log4j2-elasticsearch-core - skeleton provider for conrete implementations
  • log4j2-elasticsearch-hc - optimized Apache Async HTTP client compatible with Elasticsearch 2.x, 5.x, 6.x and 7.x clusters
  • log4j2-elasticsearch-jest - Jest HTTP Client compatible with Elasticsearch 2.x, 5.x, 6.x and 7.x clusters
  • log4j2-elasticsearch2-bulkprocessor - TCP client compatible with 2.x clusters
  • log4j2-elasticsearch5-bulkprocessor - TCP client compatible with 5.x and 6.x clusters
  • log4j2-elasticsearch6-bulkprocessor - TCP client compatible with 6.x clusters

Features

Roadmap contributions welcome

  • Metrics
  • More Elasticsearch API integrations

Feature Requests welcome!

Usage

  1. Add this snippet to your pom.xml file:

    <dependency>
        <groupId>org.appenders.log4j</groupId>
        <artifactId>log4j2-elasticsearch-jest</artifactId>
        <version>1.5.1</version>
    </dependency>
    

    Ensure that Log4j2 and Jackson FasterXML jars are added as well - see Dependencies section below

  2. Use simple log4j2.xml configuration:

    <Appenders>
        <Elasticsearch name="elasticsearchAsyncBatch">
            <IndexName indexName="log4j2" />
            <JacksonJsonLayout />
            <AsyncBatchDelivery>
                <IndexTemplate name="log4j2" path="classpath:indexTemplate.json" />
                <JestHttp serverUris="http://localhost:9200" />
            </AsyncBatchDelivery>
        </Elasticsearch>
    </Appenders>
    

    or use new, optimized Apache HC based HTTP client

    or log4j2.properties

    or configure programmatically

    NOTE: indexTemplate.json file is not a part of main jars. You have to create it on your own (because only YOU know which mapping you'd like to use). You can find a few basic ones in tests jars and log4j2-elasticsearch-examples.

  3. Start logging directly to Elasticsearch!

    Logger log = LogManager.getLogger("Logger that references elasticsearchAsyncBatch")
    log.info("Hello, World!");
    

    Logs not arriving? Visit examples and verify your config.

Dependencies

Be aware that Jackson FasterXML, Log4j2, Apache HC, Netty, Chronicle or JCTools jars may need to be provided for this library to work. By design, you can choose which jars you'd like to have on your classpath. Please visit mvnrepository for an overview of provided and compile dependencies

In order to fix #56, two new modules were extracted from log4j2-elasticsearch-core:

This will not cause any issues if you're using packaging tools with transitive dependencies support (Maven, Gradle, etc.). However, in some cases e.g. if you're managing your jars explicitly, classloaders will complain. Sorry for the inconvenience.

Released to Sonatype OSS repos

Visit submodules' documentation or mvnrepository for XML snippets.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].