logstash-output-coralogix 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/logstash/outputs/coralogix.rb +3 -2
- data/logstash-output-coralogix.gemspec +4 -3
- metadata +5 -5
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 14c03116c883df83068a277ad35fd2ab1cb84c0f2142fdd2b83e0bddd39861e0
         | 
| 4 | 
            +
              data.tar.gz: e9ba4c94c720c84e15bf8180a2fb8188dcf1d742f5955a71d45597645776840e
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 5deb0abe32d335230bb52df8cd0b3bfe382d1a8e41411c9fbbf406a25c6f22833069adba8bdeab0f44930cf1d736f6abc807fd93f7ae45b247c96d150aa12b82
         | 
| 7 | 
            +
              data.tar.gz: 3996674c83acc0aff20073ff7fbdbb2ebdd70eab35789a0686b3b69232b6eed36c2906cbec2bd7e06bbfd392494aaaadbca5ee01f7d11f8e48ae3c0924c0e7af
         | 
| @@ -17,6 +17,7 @@ class LogStash::Outputs::Coralogix < LogStash::Outputs::Base | |
| 17 17 | 
             
              config :is_json, :validate => :boolean, :required => false
         | 
| 18 18 | 
             
              config :force_compression, :validate => :boolean, :required => false, :default => false
         | 
| 19 19 | 
             
              config :debug, :validate => :boolean, :required => false, :default => false
         | 
| 20 | 
            +
              config :proxy, :validate => :hash, :required => false, :default => {}
         | 
| 20 21 | 
             
              @configured = false
         | 
| 21 22 |  | 
| 22 23 | 
             
              public def register
         | 
| @@ -63,7 +64,7 @@ class LogStash::Outputs::Coralogix < LogStash::Outputs::Base | |
| 63 64 | 
             
                  @loggers = {}
         | 
| 64 65 | 
             
                  #If config parameters doesn't start with $ then we can configure Coralogix logger now.
         | 
| 65 66 | 
             
                  if !config_params["APP_NAME"].start_with?("$") && !config_params["SUB_SYSTEM"].start_with?("$")
         | 
| 66 | 
            -
                    @logger = Coralogix::CoralogixLogger.new config_params["PRIVATE_KEY"], config_params["APP_NAME"], config_params["SUB_SYSTEM"], debug, "Logstash (#{version?})", force_compression
         | 
| 67 | 
            +
                    @logger = Coralogix::CoralogixLogger.new config_params["PRIVATE_KEY"], config_params["APP_NAME"], config_params["SUB_SYSTEM"], debug, "Logstash (#{version?})", force_compression, proxy
         | 
| 67 68 | 
             
                    @configured = true
         | 
| 68 69 | 
             
                  end
         | 
| 69 70 | 
             
                rescue Exception => e
         | 
| @@ -99,7 +100,7 @@ class LogStash::Outputs::Coralogix < LogStash::Outputs::Base | |
| 99 100 | 
             
                app_name, sub_name = get_app_sub_name(record)
         | 
| 100 101 |  | 
| 101 102 | 
             
                if !@loggers.key?("#{app_name}.#{sub_name}")
         | 
| 102 | 
            -
                  @loggers["#{app_name}.#{sub_name}"] = Coralogix::CoralogixLogger.new config_params["PRIVATE_KEY"], app_name, sub_name, debug, "Logstash (#{version?})", force_compression
         | 
| 103 | 
            +
                  @loggers["#{app_name}.#{sub_name}"] = Coralogix::CoralogixLogger.new config_params["PRIVATE_KEY"], app_name, sub_name, debug, "Logstash (#{version?})", force_compression, proxy
         | 
| 103 104 | 
             
                end
         | 
| 104 105 |  | 
| 105 106 | 
             
                return @loggers["#{app_name}.#{sub_name}"]
         | 
| @@ -1,8 +1,9 @@ | |
| 1 1 | 
             
            Gem::Specification.new do |s|
         | 
| 2 2 | 
             
              s.name = 'logstash-output-coralogix'
         | 
| 3 | 
            -
              s.version = '1.0. | 
| 3 | 
            +
              s.version = '1.0.1'
         | 
| 4 | 
            +
              s.date = '2019-05-13'
         | 
| 4 5 | 
             
              s.licenses = ['Apache-2.0']
         | 
| 5 | 
            -
              s.summary = ' | 
| 6 | 
            +
              s.summary = 'Deliver the logs to Coralogix service.'
         | 
| 6 7 | 
             
              s.description = 'This gem is a Logstash output plugin to deliver the logs to Coralogix service.'
         | 
| 7 8 | 
             
              s.homepage = 'https://coralogix.com/'
         | 
| 8 9 | 
             
              s.authors = ['Coralogix']
         | 
| @@ -21,7 +22,7 @@ Gem::Specification.new do |s| | |
| 21 22 | 
             
              # Gem dependencies
         | 
| 22 23 | 
             
              s.add_runtime_dependency 'logstash-core-plugin-api', '~> 2.0'
         | 
| 23 24 | 
             
              s.add_runtime_dependency 'logstash-codec-plain'
         | 
| 24 | 
            -
              s.add_runtime_dependency 'centralized_ruby_logger', '>= 0.0. | 
| 25 | 
            +
              s.add_runtime_dependency 'centralized_ruby_logger', '>= 0.0.14'
         | 
| 25 26 |  | 
| 26 27 | 
             
              s.add_development_dependency 'logstash-devutils'
         | 
| 27 28 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: logstash-output-coralogix
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.0. | 
| 4 | 
            +
              version: 1.0.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Coralogix
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2019- | 
| 11 | 
            +
            date: 2019-05-13 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: logstash-core-plugin-api
         | 
| @@ -44,14 +44,14 @@ dependencies: | |
| 44 44 | 
             
                requirements:
         | 
| 45 45 | 
             
                - - ">="
         | 
| 46 46 | 
             
                  - !ruby/object:Gem::Version
         | 
| 47 | 
            -
                    version: 0.0. | 
| 47 | 
            +
                    version: 0.0.14
         | 
| 48 48 | 
             
              type: :runtime
         | 
| 49 49 | 
             
              prerelease: false
         | 
| 50 50 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 51 51 | 
             
                requirements:
         | 
| 52 52 | 
             
                - - ">="
         | 
| 53 53 | 
             
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            -
                    version: 0.0. | 
| 54 | 
            +
                    version: 0.0.14
         | 
| 55 55 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 56 56 | 
             
              name: logstash-devutils
         | 
| 57 57 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -106,6 +106,6 @@ rubyforge_project: | |
| 106 106 | 
             
            rubygems_version: 2.7.3
         | 
| 107 107 | 
             
            signing_key: 
         | 
| 108 108 | 
             
            specification_version: 4
         | 
| 109 | 
            -
            summary:  | 
| 109 | 
            +
            summary: Deliver the logs to Coralogix service.
         | 
| 110 110 | 
             
            test_files:
         | 
| 111 111 | 
             
            - spec/outputs/coralogix_spec.rb
         |