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

fluent-plugin-sqlquery-ssh

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluent-plugin-sqlquery-ssh

  • 0.1.11
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

===========================

Fluentd Input plugin to execute mysql query and fetch rows across multiple dbs based on an initial shard query returning array of host/db to hit

Installation

install with gem or fluent-gem command as:

# for fluentd
$ fluentd-gem install fluent-plugin-sqlquery-ssh

# for td-agent
$ sudo /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-sqlquery-ssh

Configuration

Config Sample

<source>
  type sqlquery_ssh
  shard_map_query SELECT database_host, group_concat(database_name) AS database_name FROM cust_customer WHERE status = 'customer' AND collect_stats=1 GROUP BY database_host order by database_host DESC;
  query SELECT database() as customer from invoice
  host system-reporting.db.prd.us-east-silo.ls  #only use for reporting slaves
  ssh_gateway mgmt.us-east-silo.lightspeedapp.com
  skip_shards [""] #currently broken. use shard query to reduce set.
  ssh_username #user name with jumphost access
  db_username #reporting db username (do not use this on prod other than reporting)
  db_password #the db password for the user above.
  nest_result no #whether to nest the result set
  nest_key data #key to nest
  row_count no #add row count to the return
  row_count_key row_count
  tag debug #the matching tag
</source>

<match debug*>
  type stdout
</match>

FAQs

Package last updated on 10 Nov 2016

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