Sha256: f64e88fd981430fba7276d2a7990b0117f1ecdb6d2c9dc64a07853fb14436b0d

Contents?: true

Size: 396 Bytes

Versions: 7

Compression:

Stored size: 396 Bytes

Contents

# encoding: utf-8
require "json"
module Lumberjack module Beats
  FILEBEAT_LOG_LINE_FIELD = "message".freeze
  LSF_LOG_LINE_FIELD = "line".freeze
  SEQUENCE_MAX = (2**32-1).freeze

  @@json = Class.new do
    def self.load(blob)
      JSON.parse(blob)
    end
    def self.dump(v)
      v.to_json
    end
  end

  def self.json
    @@json
  end

  def self.json=(j)
    @@json = j
  end
end; end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
logstash-input-beats-3.0.4 lib/lumberjack/beats.rb
logstash-input-beats-2.2.9 lib/lumberjack/beats.rb
logstash-input-beats-3.0.3 lib/lumberjack/beats.rb
logstash-input-beats-3.0.2 lib/lumberjack/beats.rb
logstash-input-beats-3.0.1 lib/lumberjack/beats.rb
logstash-input-beats-3.0.0 lib/lumberjack/beats.rb
logstash-input-beats-2.2.8 lib/lumberjack/beats.rb