logstash-logger-yajl 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +21 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +1156 -0
  5. data/.travis.yml +26 -0
  6. data/Appraisals +23 -0
  7. data/CHANGELOG.md +203 -0
  8. data/Gemfile +6 -0
  9. data/LICENSE.txt +22 -0
  10. data/README.md +880 -0
  11. data/Rakefile +23 -0
  12. data/gemfiles/rails_3.2.gemfile +9 -0
  13. data/gemfiles/rails_4.0.gemfile +9 -0
  14. data/gemfiles/rails_4.1.gemfile +9 -0
  15. data/gemfiles/rails_4.2.gemfile +9 -0
  16. data/gemfiles/rails_5.0.gemfile +9 -0
  17. data/gemfiles/rails_5.1.gemfile +9 -0
  18. data/lib/logstash-event.rb +1 -0
  19. data/lib/logstash-logger.rb +11 -0
  20. data/lib/logstash-logger/buffer.rb +336 -0
  21. data/lib/logstash-logger/configuration.rb +29 -0
  22. data/lib/logstash-logger/device.rb +67 -0
  23. data/lib/logstash-logger/device/aws_stream.rb +94 -0
  24. data/lib/logstash-logger/device/balancer.rb +40 -0
  25. data/lib/logstash-logger/device/base.rb +73 -0
  26. data/lib/logstash-logger/device/connectable.rb +131 -0
  27. data/lib/logstash-logger/device/file.rb +23 -0
  28. data/lib/logstash-logger/device/firehose.rb +42 -0
  29. data/lib/logstash-logger/device/io.rb +11 -0
  30. data/lib/logstash-logger/device/kafka.rb +57 -0
  31. data/lib/logstash-logger/device/kinesis.rb +44 -0
  32. data/lib/logstash-logger/device/multi_delegator.rb +36 -0
  33. data/lib/logstash-logger/device/redis.rb +69 -0
  34. data/lib/logstash-logger/device/socket.rb +21 -0
  35. data/lib/logstash-logger/device/stderr.rb +13 -0
  36. data/lib/logstash-logger/device/stdout.rb +14 -0
  37. data/lib/logstash-logger/device/tcp.rb +86 -0
  38. data/lib/logstash-logger/device/udp.rb +12 -0
  39. data/lib/logstash-logger/device/unix.rb +18 -0
  40. data/lib/logstash-logger/formatter.rb +51 -0
  41. data/lib/logstash-logger/formatter/base.rb +73 -0
  42. data/lib/logstash-logger/formatter/cee.rb +11 -0
  43. data/lib/logstash-logger/formatter/cee_syslog.rb +22 -0
  44. data/lib/logstash-logger/formatter/json.rb +11 -0
  45. data/lib/logstash-logger/formatter/json_lines.rb +11 -0
  46. data/lib/logstash-logger/formatter/logstash_event.rb +6 -0
  47. data/lib/logstash-logger/logger.rb +106 -0
  48. data/lib/logstash-logger/multi_logger.rb +153 -0
  49. data/lib/logstash-logger/railtie.rb +51 -0
  50. data/lib/logstash-logger/silenced_logging.rb +83 -0
  51. data/lib/logstash-logger/tagged_logging.rb +40 -0
  52. data/lib/logstash-logger/version.rb +3 -0
  53. data/lib/logstash/event.rb +272 -0
  54. data/lib/logstash/namespace.rb +15 -0
  55. data/lib/logstash/util.rb +105 -0
  56. data/lib/logstash/util/fieldreference.rb +49 -0
  57. data/logstash-logger.gemspec +42 -0
  58. data/samples/example.crt +16 -0
  59. data/samples/example.key +15 -0
  60. data/samples/file.conf +11 -0
  61. data/samples/redis.conf +12 -0
  62. data/samples/ssl.conf +15 -0
  63. data/samples/syslog.conf +10 -0
  64. data/samples/tcp.conf +11 -0
  65. data/samples/udp.conf +11 -0
  66. data/samples/unix.conf +11 -0
  67. data/spec/configuration_spec.rb +27 -0
  68. data/spec/constructor_spec.rb +30 -0
  69. data/spec/device/balancer_spec.rb +31 -0
  70. data/spec/device/connectable_spec.rb +74 -0
  71. data/spec/device/file_spec.rb +15 -0
  72. data/spec/device/firehose_spec.rb +41 -0
  73. data/spec/device/io_spec.rb +13 -0
  74. data/spec/device/kafka_spec.rb +32 -0
  75. data/spec/device/kinesis_spec.rb +41 -0
  76. data/spec/device/multi_delegator_spec.rb +31 -0
  77. data/spec/device/redis_spec.rb +52 -0
  78. data/spec/device/socket_spec.rb +15 -0
  79. data/spec/device/stderr_spec.rb +16 -0
  80. data/spec/device/stdout_spec.rb +31 -0
  81. data/spec/device/tcp_spec.rb +120 -0
  82. data/spec/device/udp_spec.rb +9 -0
  83. data/spec/device/unix_spec.rb +23 -0
  84. data/spec/device_spec.rb +97 -0
  85. data/spec/formatter/base_spec.rb +125 -0
  86. data/spec/formatter/cee_spec.rb +15 -0
  87. data/spec/formatter/cee_syslog_spec.rb +43 -0
  88. data/spec/formatter/json_lines_spec.rb +14 -0
  89. data/spec/formatter/json_spec.rb +10 -0
  90. data/spec/formatter/logstash_event_spec.rb +10 -0
  91. data/spec/formatter_spec.rb +79 -0
  92. data/spec/logger_spec.rb +128 -0
  93. data/spec/logstash_event_spec.rb +139 -0
  94. data/spec/multi_logger_spec.rb +59 -0
  95. data/spec/rails_spec.rb +91 -0
  96. data/spec/silenced_logging_spec.rb +31 -0
  97. data/spec/spec_helper.rb +111 -0
  98. data/spec/syslog_spec.rb +32 -0
  99. data/spec/tagged_logging_spec.rb +32 -0
  100. metadata +385 -0
@@ -0,0 +1,59 @@
1
+ require 'logstash-logger'
2
+
3
+ describe LogStashLogger::MultiLogger do
4
+ include_context 'device'
5
+
6
+ # Create a MultiLogger writing to both STDOUT and a StringIO
7
+ subject { multi_logger }
8
+
9
+ it { is_expected.to be_a LogStashLogger::MultiLogger }
10
+
11
+ it "has multiple loggers" do
12
+ expect(subject.loggers.count).to eq(2)
13
+ end
14
+
15
+ it "has one logger per output" do
16
+ expect(subject.loggers[0].device).to be_a LogStashLogger::Device::Stdout
17
+ expect(subject.loggers[1].device).to be_a LogStashLogger::Device::IO
18
+ end
19
+
20
+ it "allows a different formatter for each logger" do
21
+ expect(subject.loggers[0].formatter.class).to eq ::Logger::Formatter
22
+ expect(subject.loggers[1].formatter.class).to eq LogStashLogger::Formatter::JsonLines
23
+ end
24
+
25
+ it "logs to all loggers" do
26
+ subject.loggers.each do |logger|
27
+ expect(logger).to receive(:info).with("test")
28
+ end
29
+
30
+ subject.info("test")
31
+ end
32
+
33
+ it "supports silenced logging" do
34
+ subject.loggers.each do |logger|
35
+ expect(logger).to receive(:silence).and_call_original
36
+ expect(logger.device).to receive(:write).once
37
+ end
38
+
39
+ subject.silence(::Logger::WARN) do |logger|
40
+ expect(logger).to eq(subject)
41
+ logger.info 'info'
42
+ logger.warn 'warning'
43
+ end
44
+ end
45
+
46
+ it "supports tagged logging" do
47
+ subject.loggers.each do |logger|
48
+ expect(logger).to receive(:tagged).with('tag').and_call_original
49
+ expect(logger.device).to receive(:write) do |event_string|
50
+ event = JSON.parse(event_string)
51
+ expect(event['tags']).to match_array(['tag'])
52
+ end
53
+ end
54
+
55
+ subject.tagged('tag') do |logger|
56
+ logger.info 'test'
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,91 @@
1
+ require 'rails/all'
2
+ require 'logstash-logger'
3
+ require 'logstash-logger/railtie'
4
+
5
+ module Test
6
+ class Application < ::Rails::Application
7
+ config.eager_load = false
8
+
9
+ config.logstash.port = PORT
10
+ config.log_level = :info
11
+ end
12
+ end
13
+
14
+ Test::Application.initialize!
15
+
16
+ describe LogStashLogger do
17
+ include_context 'device'
18
+
19
+ describe "Rails integration" do
20
+ let(:app) { Rails.application }
21
+ let(:config) { app.config }
22
+ subject { app.config.logger }
23
+
24
+ before(:each) do
25
+ app.config.logstash = ActiveSupport::OrderedOptions.new
26
+ app.config.logger = nil
27
+ end
28
+
29
+ describe '#setup' do
30
+ context "when configured with a port" do
31
+ before(:each) do
32
+ app.config.logstash.port = PORT
33
+ app.config.log_level = :info
34
+ LogStashLogger.setup(app)
35
+ end
36
+
37
+ it { is_expected.to be_a LogStashLogger }
38
+
39
+ it "defaults level to config.log_level" do
40
+ expect(subject.level).to eq(::Logger::INFO)
41
+ end
42
+ end
43
+
44
+ context "when configured with a URI" do
45
+ before(:each) do
46
+ app.config.logstash.uri = tcp_uri
47
+ LogStashLogger.setup(app)
48
+ end
49
+
50
+ it "configures the logger using the URI" do
51
+ expect(subject.device).to be_a LogStashLogger::Device::TCP
52
+ end
53
+ end
54
+
55
+ context "when configuring a multi delegator" do
56
+ before(:each) do
57
+ app.config.logstash.type = :multi_delegator
58
+ app.config.logstash.outputs = [
59
+ {
60
+ type: :udp,
61
+ uri: udp_uri
62
+ },
63
+ {
64
+ type: :file,
65
+ path: '/tmp/foo.log'
66
+ }
67
+ ]
68
+ LogStashLogger.setup(app)
69
+ end
70
+
71
+ it "uses a multi delegator" do
72
+ expect(subject.device).to be_a LogStashLogger::Device::MultiDelegator
73
+ expect(subject.device.devices.map(&:class)).to eq([
74
+ LogStashLogger::Device::UDP,
75
+ LogStashLogger::Device::File
76
+ ])
77
+ end
78
+ end
79
+
80
+ context "when logstash is not configured" do
81
+ before(:each) do
82
+ LogStashLogger.setup(app)
83
+ end
84
+
85
+ it "does not configure anything" do
86
+ expect(app.config.logger).to be_nil
87
+ end
88
+ end
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,31 @@
1
+ require 'logstash-logger'
2
+
3
+ describe LogStashLogger do
4
+ include_context 'logger'
5
+
6
+ describe "silenced logging" do
7
+
8
+ it "yields the logger" do
9
+ logger.silence do |yielded|
10
+ expect(yielded).to eq(logger)
11
+ end
12
+ end
13
+
14
+ it "silences any message below ERROR level by default" do
15
+ logger.silence do
16
+ expect(logger.device).to receive(:write).once
17
+ logger.info("info")
18
+ logger.warn("warning")
19
+ logger.error("error")
20
+ end
21
+ end
22
+
23
+ it "takes a custom log level to silence to" do
24
+ logger.silence(::Logger::WARN) do
25
+ expect(logger.device).to receive(:write).once
26
+ logger.info("info")
27
+ logger.warn("warning")
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,111 @@
1
+ require 'pry'
2
+ require 'securerandom'
3
+
4
+ require 'simplecov'
5
+ SimpleCov.start
6
+ if ENV['CI']=='true'
7
+ require 'codecov'
8
+ SimpleCov.formatter = SimpleCov::Formatter::Codecov
9
+ end
10
+
11
+ RSpec.configure do |config|
12
+ config.order = "random"
13
+
14
+ config.before(:suite) do
15
+ puts "Testing with #{CONNECTION_TYPE.to_s.upcase} socket type"
16
+ end
17
+
18
+ config.before(:each) do
19
+ LogStashLogger.configure do
20
+
21
+ end
22
+ end
23
+
24
+ config.expect_with :rspec do |c|
25
+ c.syntax = :expect
26
+ end
27
+ end
28
+
29
+ HOST = ENV['HOST'] || '0.0.0.0'
30
+ PORT = ENV.fetch('PORT', 5228).to_i
31
+ CONNECTION_TYPE ||= (ENV['TYPE'] || 'UDP').to_s.downcase.to_sym
32
+
33
+ RSpec.shared_context 'logger' do
34
+ # The type of connection we're testing
35
+ def connection_type
36
+ CONNECTION_TYPE
37
+ end
38
+
39
+ let(:host) { HOST }
40
+ let(:hostname) { Socket.gethostname }
41
+ let(:port) { PORT }
42
+
43
+ # The logstash logger
44
+ let(:logger) { LogStashLogger.new(host: host, port: port, type: connection_type, sync: true) }
45
+ # The log device that the logger writes to
46
+ let(:logdev) { logger.instance_variable_get(:@logdev) }
47
+ end
48
+
49
+ RSpec.shared_context 'device' do
50
+ let(:port) { PORT }
51
+ let(:device_with_port) { LogStashLogger::Device.new(port: port) }
52
+ let(:udp_device) { LogStashLogger::Device.new(type: :udp, port: port, sync: true) }
53
+ let(:tcp_device) { LogStashLogger::Device.new(type: :tcp, port: port, sync: true) }
54
+ let(:ssl_tcp_device) { LogStashLogger::Device.new(type: :tcp, port: port, ssl_enable: true, sync: true) }
55
+ let(:unix_device) { LogStashLogger::Device.new(type: :unix, path: '/tmp/logstash', sync: true) }
56
+
57
+ let(:file) { Tempfile.new('test') }
58
+ let(:file_device) { LogStashLogger::Device.new(type: :file, path: file.path)}
59
+
60
+ let(:io) { StringIO.new }
61
+ let(:io_device) { LogStashLogger::Device.new(type: :io, io: io)}
62
+
63
+ let(:redis_device) { LogStashLogger::Device.new(type: :redis, sync: true) }
64
+ let(:kafka_device) { LogStashLogger::Device.new(type: :kafka, sync: true) }
65
+ let(:kinesis_device) { LogStashLogger::Device.new(type: :kinesis, sync: true) }
66
+ let(:firehose_device) { LogStashLogger::Device.new(type: :firehose, sync: true) }
67
+
68
+ let(:outputs) { [{type: :stdout}, {type: :io, io: io}] }
69
+ let(:multi_delegator_device) { LogStashLogger::Device.new(type: :multi_delegator, outputs: outputs) }
70
+ let(:balancer_device) { LogStashLogger::Device.new(type: :balancer, outputs: outputs) }
71
+ let(:multi_logger) do
72
+ LogStashLogger.new(
73
+ type: :multi_logger,
74
+ outputs: [
75
+ { type: :stdout, formatter: ::Logger::Formatter },
76
+ { type: :io, io: io }
77
+ ]
78
+ )
79
+ end
80
+
81
+ let(:udp_uri) { "udp://localhost:5228" }
82
+ let(:tcp_uri) { "tcp://localhost:5229" }
83
+ let(:unix_uri) { "unix:///some/path/to/socket" }
84
+ let(:file_uri) { "file://#{file.path}" }
85
+ let(:redis_uri) { "redis://localhost:6379" }
86
+ let(:kafka_uri) { "kafka://localhost:9092" }
87
+ let(:stdout_uri) { "stdout://localhost" }
88
+ let(:stderr_uri) { "stderr://localhost" }
89
+
90
+ let(:invalid_uri_config) { {uri: "non parsable uri"} }
91
+ let(:udp_uri_config) { {uri: udp_uri} }
92
+ let(:tcp_uri_config) { {uri: tcp_uri} }
93
+ let(:unix_uri_config) { {uri: unix_uri} }
94
+ let(:file_uri_config) { {uri: file_uri} }
95
+ let(:redis_uri_config) { {uri: redis_uri} }
96
+ let(:kafka_uri_config) { {uri: kafka_uri} }
97
+ let(:stdout_uri_config) { {uri: stdout_uri} }
98
+ let(:stderr_uri_config) { {uri: stderr_uri} }
99
+ end
100
+
101
+ RSpec.shared_context 'formatter' do
102
+ let(:severity) { "DEBUG" }
103
+ let(:time) { Time.now }
104
+ let(:progname) { "ruby" }
105
+ let(:message) { "foo" }
106
+ let(:long_message) { SecureRandom.hex(65537) }
107
+ let(:hostname) { Socket.gethostname }
108
+ let(:formatted_message) do
109
+ subject.call(severity, time, progname, message)
110
+ end
111
+ end
@@ -0,0 +1,32 @@
1
+ require 'logstash-logger'
2
+
3
+ describe LogStashLogger do
4
+ let(:program_name) { 'MyApp' }
5
+ let(:facility) { 128 } #Syslog::LOG_LOCAL0 }
6
+
7
+ context 'Syslog' do
8
+ subject { LogStashLogger.new(type: :syslog, program_name: program_name, facility: facility) }
9
+ let(:syslog) { subject.class.class_variable_get(:@@syslog) }
10
+
11
+ it { is_expected.to be_a Syslog::Logger }
12
+
13
+ it 'writes formatted messages to syslog' do
14
+ expect(syslog).to receive(:log)
15
+ subject.info('test')
16
+ end
17
+
18
+ it 'sets the syslog identity' do
19
+ expect(syslog.ident).to eq(program_name)
20
+ end
21
+
22
+ it 'sets the default facility if supported' do
23
+ expect(subject.facility).to eq(facility) if subject.respond_to?(:facility)
24
+ end
25
+ end
26
+
27
+ context 'when logger type is a string' do
28
+ subject { LogStashLogger.new(type: 'syslog', program_name: program_name, facility: facility) }
29
+
30
+ it { is_expected.to be_a Syslog::Logger }
31
+ end
32
+ end
@@ -0,0 +1,32 @@
1
+ require 'logstash-logger'
2
+
3
+ describe LogStashLogger do
4
+ include_context 'logger'
5
+
6
+ describe "tagged logging" do
7
+ let(:message) { 'foo' }
8
+ let(:tag) { 'bar' }
9
+
10
+ it "puts tags into the tags array on the logstash event" do
11
+ expect(logdev).to receive(:write) do |event_string|
12
+ event = JSON.parse(event_string)
13
+ expect(event['tags']).to match_array([tag])
14
+ expect(event['message']).to eq(message)
15
+ end
16
+
17
+ logger.tagged(tag) do
18
+ logger.info(message)
19
+ end
20
+ end
21
+
22
+ it "doesn't put tags on the event when there are no tags" do
23
+ expect(logdev).to receive(:write) do |event_string|
24
+ event = JSON.parse(event_string)
25
+ expect(event['tags']).to be_nil
26
+ expect(event['message']).to eq(message)
27
+ end
28
+
29
+ logger.info(message)
30
+ end
31
+ end
32
+ end
metadata ADDED
@@ -0,0 +1,385 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: logstash-logger-yajl
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.27.0
5
+ platform: ruby
6
+ authors:
7
+ - David Butler
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-03-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: yajl-ruby
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: redis
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: poseidon
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: aws-sdk-kinesis
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: aws-sdk-firehose
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '3'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '3'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rake
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: wwtd
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: appraisal
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: rubocop
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: insist
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - '='
186
+ - !ruby/object:Gem::Version
187
+ version: 1.0.0
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - '='
193
+ - !ruby/object:Gem::Version
194
+ version: 1.0.0
195
+ - !ruby/object:Gem::Dependency
196
+ name: guard
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: guard-rspec
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ description: Ruby logger that writes directly to LogStash
224
+ email:
225
+ - dwbutler@ucla.edu
226
+ executables: []
227
+ extensions: []
228
+ extra_rdoc_files: []
229
+ files:
230
+ - ".gitignore"
231
+ - ".rspec"
232
+ - ".rubocop.yml"
233
+ - ".travis.yml"
234
+ - Appraisals
235
+ - CHANGELOG.md
236
+ - Gemfile
237
+ - LICENSE.txt
238
+ - README.md
239
+ - Rakefile
240
+ - gemfiles/rails_3.2.gemfile
241
+ - gemfiles/rails_4.0.gemfile
242
+ - gemfiles/rails_4.1.gemfile
243
+ - gemfiles/rails_4.2.gemfile
244
+ - gemfiles/rails_5.0.gemfile
245
+ - gemfiles/rails_5.1.gemfile
246
+ - lib/logstash-event.rb
247
+ - lib/logstash-logger.rb
248
+ - lib/logstash-logger/buffer.rb
249
+ - lib/logstash-logger/configuration.rb
250
+ - lib/logstash-logger/device.rb
251
+ - lib/logstash-logger/device/aws_stream.rb
252
+ - lib/logstash-logger/device/balancer.rb
253
+ - lib/logstash-logger/device/base.rb
254
+ - lib/logstash-logger/device/connectable.rb
255
+ - lib/logstash-logger/device/file.rb
256
+ - lib/logstash-logger/device/firehose.rb
257
+ - lib/logstash-logger/device/io.rb
258
+ - lib/logstash-logger/device/kafka.rb
259
+ - lib/logstash-logger/device/kinesis.rb
260
+ - lib/logstash-logger/device/multi_delegator.rb
261
+ - lib/logstash-logger/device/redis.rb
262
+ - lib/logstash-logger/device/socket.rb
263
+ - lib/logstash-logger/device/stderr.rb
264
+ - lib/logstash-logger/device/stdout.rb
265
+ - lib/logstash-logger/device/tcp.rb
266
+ - lib/logstash-logger/device/udp.rb
267
+ - lib/logstash-logger/device/unix.rb
268
+ - lib/logstash-logger/formatter.rb
269
+ - lib/logstash-logger/formatter/base.rb
270
+ - lib/logstash-logger/formatter/cee.rb
271
+ - lib/logstash-logger/formatter/cee_syslog.rb
272
+ - lib/logstash-logger/formatter/json.rb
273
+ - lib/logstash-logger/formatter/json_lines.rb
274
+ - lib/logstash-logger/formatter/logstash_event.rb
275
+ - lib/logstash-logger/logger.rb
276
+ - lib/logstash-logger/multi_logger.rb
277
+ - lib/logstash-logger/railtie.rb
278
+ - lib/logstash-logger/silenced_logging.rb
279
+ - lib/logstash-logger/tagged_logging.rb
280
+ - lib/logstash-logger/version.rb
281
+ - lib/logstash/event.rb
282
+ - lib/logstash/namespace.rb
283
+ - lib/logstash/util.rb
284
+ - lib/logstash/util/fieldreference.rb
285
+ - logstash-logger.gemspec
286
+ - samples/example.crt
287
+ - samples/example.key
288
+ - samples/file.conf
289
+ - samples/redis.conf
290
+ - samples/ssl.conf
291
+ - samples/syslog.conf
292
+ - samples/tcp.conf
293
+ - samples/udp.conf
294
+ - samples/unix.conf
295
+ - spec/configuration_spec.rb
296
+ - spec/constructor_spec.rb
297
+ - spec/device/balancer_spec.rb
298
+ - spec/device/connectable_spec.rb
299
+ - spec/device/file_spec.rb
300
+ - spec/device/firehose_spec.rb
301
+ - spec/device/io_spec.rb
302
+ - spec/device/kafka_spec.rb
303
+ - spec/device/kinesis_spec.rb
304
+ - spec/device/multi_delegator_spec.rb
305
+ - spec/device/redis_spec.rb
306
+ - spec/device/socket_spec.rb
307
+ - spec/device/stderr_spec.rb
308
+ - spec/device/stdout_spec.rb
309
+ - spec/device/tcp_spec.rb
310
+ - spec/device/udp_spec.rb
311
+ - spec/device/unix_spec.rb
312
+ - spec/device_spec.rb
313
+ - spec/formatter/base_spec.rb
314
+ - spec/formatter/cee_spec.rb
315
+ - spec/formatter/cee_syslog_spec.rb
316
+ - spec/formatter/json_lines_spec.rb
317
+ - spec/formatter/json_spec.rb
318
+ - spec/formatter/logstash_event_spec.rb
319
+ - spec/formatter_spec.rb
320
+ - spec/logger_spec.rb
321
+ - spec/logstash_event_spec.rb
322
+ - spec/multi_logger_spec.rb
323
+ - spec/rails_spec.rb
324
+ - spec/silenced_logging_spec.rb
325
+ - spec/spec_helper.rb
326
+ - spec/syslog_spec.rb
327
+ - spec/tagged_logging_spec.rb
328
+ homepage: http://github.com/dwbutler/logstash-logger
329
+ licenses:
330
+ - MIT
331
+ metadata: {}
332
+ post_install_message:
333
+ rdoc_options: []
334
+ require_paths:
335
+ - lib
336
+ required_ruby_version: !ruby/object:Gem::Requirement
337
+ requirements:
338
+ - - ">="
339
+ - !ruby/object:Gem::Version
340
+ version: '0'
341
+ required_rubygems_version: !ruby/object:Gem::Requirement
342
+ requirements:
343
+ - - ">="
344
+ - !ruby/object:Gem::Version
345
+ version: '0'
346
+ requirements: []
347
+ rubyforge_project:
348
+ rubygems_version: 2.5.2.3
349
+ signing_key:
350
+ specification_version: 4
351
+ summary: LogStash Logger for ruby
352
+ test_files:
353
+ - spec/configuration_spec.rb
354
+ - spec/constructor_spec.rb
355
+ - spec/device/balancer_spec.rb
356
+ - spec/device/connectable_spec.rb
357
+ - spec/device/file_spec.rb
358
+ - spec/device/firehose_spec.rb
359
+ - spec/device/io_spec.rb
360
+ - spec/device/kafka_spec.rb
361
+ - spec/device/kinesis_spec.rb
362
+ - spec/device/multi_delegator_spec.rb
363
+ - spec/device/redis_spec.rb
364
+ - spec/device/socket_spec.rb
365
+ - spec/device/stderr_spec.rb
366
+ - spec/device/stdout_spec.rb
367
+ - spec/device/tcp_spec.rb
368
+ - spec/device/udp_spec.rb
369
+ - spec/device/unix_spec.rb
370
+ - spec/device_spec.rb
371
+ - spec/formatter/base_spec.rb
372
+ - spec/formatter/cee_spec.rb
373
+ - spec/formatter/cee_syslog_spec.rb
374
+ - spec/formatter/json_lines_spec.rb
375
+ - spec/formatter/json_spec.rb
376
+ - spec/formatter/logstash_event_spec.rb
377
+ - spec/formatter_spec.rb
378
+ - spec/logger_spec.rb
379
+ - spec/logstash_event_spec.rb
380
+ - spec/multi_logger_spec.rb
381
+ - spec/rails_spec.rb
382
+ - spec/silenced_logging_spec.rb
383
+ - spec/spec_helper.rb
384
+ - spec/syslog_spec.rb
385
+ - spec/tagged_logging_spec.rb