All Projects → funcmike → Logstash Output Clickhouse

funcmike / Logstash Output Clickhouse

Licence: other
Implementation of ClickHouse output for logstash

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Logstash Output Clickhouse

Szt Bigdata
深圳地铁大数据客流分析系统🚇🚄🌟
Stars: ✭ 826 (+1001.33%)
Mutual labels:  clickhouse
Spring Boot Microservice Eureka Zuul Docker
Spring-Boot rest microservices using Eureka, Zuul, Docker. Monitoring with logstash, logback, elasticsearch, kibana
Stars: ✭ 45 (-40%)
Mutual labels:  logstash
Tabix
Tabix.io UI
Stars: ✭ 1,152 (+1436%)
Mutual labels:  clickhouse
Office365 Management Api Elk
An API connector for the Office 365 Management API and the Elastic Stack
Stars: ✭ 13 (-82.67%)
Mutual labels:  logstash
Logstash Testing E2e
Easy Logstash testing ē2ē
Stars: ✭ 35 (-53.33%)
Mutual labels:  logstash
Ansible Config encoder filters
Ansible role used to deliver the Config Encoder Filters.
Stars: ✭ 48 (-36%)
Mutual labels:  logstash
Bifrost
Bifrost ---- 面向生产环境的 MySQL 同步到Redis,MongoDB,ClickHouse,MySQL等服务的异构中间件
Stars: ✭ 701 (+834.67%)
Mutual labels:  clickhouse
Logstash
OSSEC + Logstash + Elasticsearch + Kibana
Stars: ✭ 74 (-1.33%)
Mutual labels:  logstash
Flight Track
Logstash config and Kibana dashboard to visualize ADS-B signals. Your own receiver with dump1090 is required.
Stars: ✭ 36 (-52%)
Mutual labels:  logstash
Logger logstash backend
Logstash backend for the Elixir Logger
Stars: ✭ 67 (-10.67%)
Mutual labels:  logstash
Analytics
Simple, open-source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
Stars: ✭ 9,469 (+12525.33%)
Mutual labels:  clickhouse
Vector Test Harness
End-to-end test harness for the Vector observability data router
Stars: ✭ 32 (-57.33%)
Mutual labels:  logstash
Homebrew Clickhouse
ClickHouse for MacOS Sierra and High Sierra.
Stars: ✭ 50 (-33.33%)
Mutual labels:  clickhouse
Homebrew Clickhouse
Stars: ✭ 26 (-65.33%)
Mutual labels:  clickhouse
Clickhouse Jdbc Bridge
A JDBC proxy from ClickHouse to external databases
Stars: ✭ 69 (-8%)
Mutual labels:  clickhouse
Loghouse
Ready to use log management solution for Kubernetes storing data in ClickHouse and providing web UI.
Stars: ✭ 805 (+973.33%)
Mutual labels:  clickhouse
Logstash Input Http
Stars: ✭ 46 (-38.67%)
Mutual labels:  logstash
Clickhouse Cpp
C++ client library for ClickHouse
Stars: ✭ 75 (+0%)
Mutual labels:  clickhouse
Docker Elk Tutorial
docker-elk-tutorial + django + logging
Stars: ✭ 69 (-8%)
Mutual labels:  logstash
Vulnwhisperer
Create actionable data from your Vulnerability Scans
Stars: ✭ 1,102 (+1369.33%)
Mutual labels:  logstash

I switched to vector -> https://github.com/timberio/vector.

Logstash Plugin

This plugin is a modified version of the Lucidworks logstash json_batch. That plugin is available here.

It has been modified to support ClickHouse JSON Format, but also supports fault tolerance.

Usage

Please note that the name of the plugin when used is clickhouse, it only supports json in its current form. If further output formats are added in the future, this might change back to json_batch.

output {
  clickhouse {
    headers => ["Authorization", "Basic YWRtaW46cGFzc3dvcmQxMjM="]
    http_hosts => ["http://your.clickhouse1/", "http://your.clickhouse2/", "http://your.clickhouse3/"]
    table => "table_name"
    mutations => {
      "to1" => "from1"
      "to2" => [ "from2", "(.)(.)", '\1\2' ]
    }
  }
}

Other custom options

  • save_on_failure (default: true) - enable / disable request body save on failure
  • save_dir (default: /tmp) - directory where failed request body will be saved
  • automatic_retries (default: 1) - number of connect retry attempts to each host in http_hosts
  • request_tolerance (default: 5) - number of http request send retry attempts if response status code is not 200
  • backoff_time (default: 3) - time to wait in seconds for next retry attempt of connect or request

Default batch size is 50, with a wait of at most 5 seconds per send. These can be tweaked with the parameters flush_size and idle_flush_time respectively.

Installation

The easiest way to use this plugin is by installing it through rubygems like any other logstash plugin. To get the latest versio installed, you should run the following command: bin/logstash-plugin install logstash-output-clickhouse

Building the gem and installing a local version

To build the gem yourself, use gem build logstash-output-clickhouse.gemspec in the root of this repository. Alternatively, you can download a built version of the gem from the dist branch of this repository.

To install, run the following command, assuming the gem is in the local directory: $LOGSTASH_HOME/bin/plugin install logstash-output-clickhouse-X.Y.Z.gem

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].