fluent-plugin-logdna 0.1.8 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c2936edd3832b6adeec6b66aecd85b3e7535824a
4
- data.tar.gz: 331fa28c467e2eaf655a8efb703ea8bf8990f053
2
+ SHA256:
3
+ metadata.gz: febe9d7b76663bb4b6ac9708469baac099cef66350bb0632a16a8c769d7f6401
4
+ data.tar.gz: 59ff8adb086da0a1822f3b35aaa546a1c5054138fd0f0066fdfb08559ca26766
5
5
  SHA512:
6
- metadata.gz: 4043ab49a5f298e32f11a92ce990d39537ab94253498b639d16b809c24ebf69d718f663b55f8071f0f704494c0739d591aedcb393392573785a2b955c75f15c7
7
- data.tar.gz: 28a47a041aa02974066142503c478aa2a429b250ed652e65c8246851d6bcbc675c8066935c3cc83e7b06332ba24ae14a1a1985c87dc12aedb1c8d61f0c414e07
6
+ metadata.gz: 1b5bbb8fadaf21d8fcae55fe9796ad654667e91f1d00b82741f26c3d26cb6d0db3163c67aa1ee4a01bad95a5a05cf36e2e35017ce772468c44694507781e9cf2
7
+ data.tar.gz: 43704cac7be00cbb76cb2caf0c4bc44aeaaf4737468d563ee7c52e169c5f40de39f88f4ac5c7d8b3abc964b521b5c66897fcfddb6f8250ec158ea50e85cc1135
data/README.md CHANGED
@@ -7,29 +7,33 @@ Using fluent-plugin-logdna, you can send the logs you collect with Fluentd to Lo
7
7
  ## Instructions
8
8
 
9
9
  * Install [Fluentd](http://www.fluentd.org/download)
10
- * `gem install fluent-plugin-logdna` or `td-agent-gem install fluent-plugin-logdna` if you are using td-agent.
10
+ * Alternative install if using fluentd package manager (td-agent): `td-agent-gem install fluent-plugin-logdna`
11
11
  * Add the contents below to `/etc/fluent/fluent.conf`. For td-agent, use `/etc/td-agent/td-agent.conf`:
12
+ * Alternative install without td-agent is: `gem install fluent-plugin-logdna`
12
13
 
13
14
  ~~~~~
14
- <match your_match>
15
+ <match **>
15
16
  @type logdna
16
17
  api_key xxxxxxxxxxxxxxxxxxxxxxxxxxx # paste your api key here (required)
17
18
  hostname "#{Socket.gethostname}" # your hostname (required)
18
19
  app my_app # replace with your app name
19
20
  #mac C0:FF:EE:C0:FF:EE # optional mac address
20
21
  #ip 127.0.0.1 # optional ip address
21
- buffer_chunk_limit 1m # do not increase past 10m (10MB) or your logs will be rejected by our server.
22
+ #tags web,dev # optional tags
23
+ buffer_chunk_limit 1m # do not increase past 8m (8MB) or your logs will be rejected by our server.
22
24
  flush_at_shutdown true # only needed with file buffer
23
25
  </match>
24
26
  ~~~~~
25
27
  * Restart fluentd to pick up the configuration changes.
28
+ * `sudo /etc/init.d/td-agent stop`
29
+ * `sudo /etc/init.d/td-agent start`
26
30
 
27
31
  ### Recommended Configuration Parameters
28
32
 
29
33
  * buffer_type
30
34
  - We recommend setting this to memory for development and file for production (file setting requires a buffer_path).
31
35
  * buffer_queue_limit, buffer_chunk_limit
32
- - We do not recommend increasing buffer_chunk_limit past 10MB.
36
+ - We do not recommend increasing buffer_chunk_limit past 8MB.
33
37
  * flush_interval
34
38
  - Default is 60s. We recommend keeping this well above 5s.
35
39
  * retry_wait, max_retry_wait, retry_limit, disable_retry_limit
@@ -3,12 +3,12 @@ require 'date'
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'fluent-plugin-logdna'
6
- s.version = '0.1.8'
6
+ s.version = '0.2.3'
7
7
  s.date = Date.today.to_s
8
8
  s.summary = 'LogDNA plugin for Fluentd'
9
9
  s.description = 'Fluentd plugin for supplying output to LogDNA.'
10
- s.authors = ['LogDNA']
11
- s.email = 'support@logdna.com'
10
+ s.authors = ['Edwin Lai']
11
+ s.email = 'edwin@logdna.com'
12
12
  s.files = ['lib/fluent/plugin/out_logdna.rb']
13
13
  s.homepage = 'https://github.com/logdna/fluent-plugin-logdna'
14
14
  s.license = 'MIT'
@@ -9,6 +9,7 @@ module Fluent
9
9
  config_param :api_key, :string, secret: true
10
10
  config_param :hostname, :string
11
11
  config_param :mac, :string, default: nil
12
+ config_param :tags, :string, default: nil
12
13
  config_param :ip, :string, default: nil
13
14
  config_param :app, :string, default: nil
14
15
  config_param :file, :string, default: nil
@@ -80,7 +81,7 @@ module Fluent
80
81
 
81
82
  def send_request(body)
82
83
  now = Time.now.to_i
83
- url = "/logs/ingest?hostname=#{@host}&mac=#{@mac}&ip=#{@ip}&now=#{now}"
84
+ url = "/logs/ingest?hostname=#{@host}&mac=#{@mac}&ip=#{@ip}&now=#{now}&tags=#{@tags}"
84
85
  @ingester.headers('apikey' => @api_key,
85
86
  'content-type' => 'application/json')
86
87
  .post(url, json: body)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-logdna
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
- - LogDNA
7
+ - Edwin Lai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-20 00:00:00.000000000 Z
11
+ date: 2020-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -65,7 +65,7 @@ dependencies:
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.0.3
67
67
  description: Fluentd plugin for supplying output to LogDNA.
68
- email: support@logdna.com
68
+ email: edwin@logdna.com
69
69
  executables: []
70
70
  extensions: []
71
71
  extra_rdoc_files: []
@@ -99,8 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubyforge_project:
103
- rubygems_version: 2.5.2.3
102
+ rubygems_version: 3.0.3
104
103
  signing_key:
105
104
  specification_version: 4
106
105
  summary: LogDNA plugin for Fluentd