Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

logstash-input-sls

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logstash-input-sls

  • 0.0.17
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Logstash Logservice Input Plugin

This is a plugin for Logstash.

Documentation

This plugin provides infrastructure to automatically consume logs from Aliyun Log Service .

Usage:

This is an example of logstash config:

input {
  logservice{
  endpoint => "your project endpoint"
  access_id => "your access id"
  access_key => "your access key"
  project => "your project name"
  logstore => "your logstore name"
  consumer_group => "consumer group name"
  consumer_name => "consumer name"
  position => "end"
  checkpoint_second => 30
  include_meta => true
  consumer_name_with_ip => true
  }
}

output {
  stdout {}
}

Logstash Logservice Input Configuration Options

This plugin supports the following configuration options

ConfigurationTypeRequiredComments
endpointstringtrueYour project endpoint
access_idstringtrueYour access id
access_keystringtrueYour access key
projectstringtrueYour project name
logstorestringtrueYour consumer_name name
consumer_groupstringtrueConsumer group name
consumer_namestringtrueConsumer name,The consumer name in the same consumer group must not be repeated, otherwise undefined behavior will occur.
positionstringtruePosition to consume. Options are begin, end and yyyy-MM-dd HH:mm:ss
checkpoint_secondnumberfalseTime to checkpoint,default is 30
include_metabooleanfalseWhether the meta is included,default is true
consumer_name_with_ipbooleanfalseWhether the consumer name has ip,default is true,Must be set to true under distributed collaborative consumption

Install the plugin

you can build the gem and install it using:

  • Install the plugin from the Logstash home
logstash-plugin install logstash-input-sls
  • Start Logstash
logstash -f logstash-sample.conf

The performance test

The test environment

  • cpu : Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz,4 Core
  • memory : 8GB
  • env : Linux

Test result

Data flow(MB/S)CPU(%)MEM(GB)
32170.31.3
1683.31.3
841.51.3
421.01.3
211.31.3

FAQs

Package last updated on 22 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc