logstash-input-sls 0.0.12 → 0.0.14
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
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: f2a8e6695f8cf69c82eb4e84689fc0f89c7fda3119b5b6dfbdbf88adf2c5f9e4
         | 
| 4 | 
            +
              data.tar.gz: cef6c6d769c53e5324b81f1a496313cdc04ddd9764ad81578fa145c72545ef59
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 5cdca931fecd03db3801789913a16976d0a629debee8b2beed7baf7eb8350ee4f2f4234c3ba796154b34b024f34fed58ad7d511895d27c606a9bfd00b7ce64a3
         | 
| 7 | 
            +
              data.tar.gz: 26e58129b322a360a9c01d72f977ce1e150eda8ca30ccc2e60a3cf52c80dd6acbf8e3d2ad9ec2fd123bd8b7bba6a7cb1345bdf12e7ffd79050600ca9e49a65b4
         | 
| @@ -33,6 +33,16 @@ class LogStash::Inputs::LogService < LogStash::Inputs::Base | |
| 33 33 | 
             
              config :checkpoint_second, :validate => :number, :default => 30
         | 
| 34 34 | 
             
              config :include_meta, :validate => :boolean, :default => true
         | 
| 35 35 | 
             
              config :consumer_name_with_ip, :validate => :boolean, :default => true
         | 
| 36 | 
            +
             | 
| 37 | 
            +
              config :proxy_host, :validate => :string, :default => nil
         | 
| 38 | 
            +
              config :proxy_port, :validate => :number, :default => 0
         | 
| 39 | 
            +
              config :proxy_username, :validate => :string, :default => nil
         | 
| 40 | 
            +
              config :proxy_password, :validate => :string, :default => nil
         | 
| 41 | 
            +
              config :proxy_domain, :validate => :string, :default => nil
         | 
| 42 | 
            +
              config :proxy_workstation, :validate => :string, :default => nil
         | 
| 43 | 
            +
             | 
| 44 | 
            +
              config :fetch_interval_millis, :validate => :number, :default => 200
         | 
| 45 | 
            +
             | 
| 36 46 | 
             
              Processor = com.aliyun.log.logstash
         | 
| 37 47 | 
             
              public
         | 
| 38 48 | 
             
              def register
         | 
| @@ -49,7 +59,8 @@ class LogStash::Inputs::LogService < LogStash::Inputs::Base | |
| 49 59 | 
             
                end
         | 
| 50 60 | 
             
                @process_pid = "_#{Process.pid}"
         | 
| 51 61 | 
             
                @logger.info("Running logstash-input-logservice",:local_address => @local_address)
         | 
| 52 | 
            -
                 | 
| 62 | 
            +
                @blockingQueue = java.util.concurrent.LinkedBlockingQueue.new(1000)
         | 
| 63 | 
            +
                LogHubStarter.startWorker(@endpoint, @access_id, @access_key, @project, @logstore, @consumer_group, @consumer_name + @ip_suffix + @process_pid, @position, @checkpoint_second, @include_meta, @blockingQueue, @proxy_host, @proxy_port, @proxy_username, @proxy_password, @proxy_domain, @proxy_workstation, @fetch_interval_millis)
         | 
| 53 64 |  | 
| 54 65 | 
             
                consume(queue)
         | 
| 55 66 |  | 
| @@ -62,10 +73,10 @@ class LogStash::Inputs::LogService < LogStash::Inputs::Base | |
| 62 73 |  | 
| 63 74 | 
             
              def consume(queue)
         | 
| 64 75 | 
             
                     while !stop?
         | 
| 65 | 
            -
                         while  | 
| 76 | 
            +
                         while !@blockingQueue.isEmpty
         | 
| 66 77 | 
             
                             begin
         | 
| 67 | 
            -
                                  | 
| 68 | 
            -
                                 event = LogStash::Event.new( | 
| 78 | 
            +
                                 msg = @blockingQueue.poll
         | 
| 79 | 
            +
                                 event = LogStash::Event.new(msg)
         | 
| 69 80 | 
             
                                 decorate(event)
         | 
| 70 81 | 
             
                                 queue << event
         | 
| 71 82 | 
             
                             rescue Exception => e
         | 
| Binary file | 
    
        data/logstash-input-sls.gemspec
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            Gem::Specification.new do |s|
         | 
| 2 2 | 
             
              s.name = 'logstash-input-sls'
         | 
| 3 | 
            -
              s.version         = '0.0. | 
| 3 | 
            +
              s.version         = '0.0.14'
         | 
| 4 4 | 
             
              s.licenses = ['MIT']
         | 
| 5 5 | 
             
              s.summary = "This sls input streams a string at a definable interval."
         | 
| 6 6 | 
             
              s.description     = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: logstash-input-sls
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.14
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - lichao
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2023-03-22 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: logstash-core-plugin-api
         |