Skip to content

Commit

Permalink
Merge pull request #4 from slk244/bugFix
Browse files Browse the repository at this point in the history
Add dependency for mysql slow log query
  • Loading branch information
slk244 authored Aug 7, 2019
2 parents 18466c7 + ed28bf8 commit 0f6cfaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 2 additions & 0 deletions fluent-plugin-vmware-log-intelligence.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Gem::Specification.new do |s|

s.add_dependency "fluentd", ">= 0.14.20"
s.add_dependency "http", ">= 0.9.8"
s.add_dependency "myslog", "~> 0.0"
s.add_dependency "fluent-plugin-mysqlslowquery", ">= 0.0.9"
s.add_development_dependency "rake", ">= 0.9.2"
s.add_development_dependency "bundler", ">= 1.3.4"
s.add_development_dependency 'test-unit', '~> 3.1.0'
Expand Down
2 changes: 1 addition & 1 deletion lib/fluent/plugin/out_vmware_log_intelligence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def create_lint_event(record)
end
merged_records["text"] = log

if log.nil? || log == "\\n" || log.empty?
if log == "\\n"
{}
else
merged_records
Expand Down
6 changes: 0 additions & 6 deletions test/plugin/test_out_vmware_log_intelligence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,6 @@ def test_json_with_sperators
verify_write(input, output)
end

def test_json_with_empty_message
input = {"host" => "192.168.0.1", "properties" => {"type" => "windows"}, "log" => ""}
output = [{}]
verify_write(input, output)
end

def verify_write(input, output)
config = %[
endpoint_url http://localhost:9200/li
Expand Down

0 comments on commit 0f6cfaa

Please sign in to comment.