No commit activity in last 3 years
No release in over 3 years
fluent plugin to write to Microsoft SQL Server
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Fluent::Plugin::Mssql22

Gem Version

Installation

RubyGems

gem install tiny_tds connection_pool fluent-plugin-mssql22

Bundler

Add following line to your Gemfile:

gem 'fluent-plugin-mssql22'
gem 'tiny_tds'
gem 'connection_pool'

And then execute:

bundle

Configuration

  • (TinyTds Configuration ↓)
  • username
  • password
  • host
  • port
  • database
  • timeout
  • login_timeout
  • dataserver (..next version)

Example

<match metric.**>
  @type mssql22
  username "put"
  password "put!@#$"
  host "192.168.100.185"
  port 14434
  database "Metrics"
  query "EXEC USP_AddMetrics @Name='?{name}',@Data='?{data}';"
  poolsize 20
  session_options "SET ANSI_NULLS ON;SET ANSI_PADDING ON;SET ANSI_WARNINGS ON;SET ARITHABORT ON;"
  timeout 10
  login_timeout 10

  <buffer>
    @type memory
    total_limit_size 128MB
    flush_interval 1s
    flush_at_shutdown true
    flush_thread_count 20
    retry_forever true
  </buffer>
</match>