logstash_auditor 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b80572fc0ac60298387cd4b32f9aa2bf95b607fa
4
- data.tar.gz: 6f01688c3b0dfc3d6920f6b2e9e7ba390fe08120
3
+ metadata.gz: 572802b484b52994900ae0cc0a56f8ca8bb11d63
4
+ data.tar.gz: 1ef506f9b0492520a9591e36f21d383035aa1159
5
5
  SHA512:
6
- metadata.gz: a01474e2a2081b4a34579561e0de8bce37c3cbbaa75228dc0e43978100662a24139b1f2163d90a2b3233febee07e0d0e050f6fbdb0a45c3fce1591578554057e
7
- data.tar.gz: dfc11872deba76cf2157949b4f498278b997bdba156c9312f0d19a863c5285cd57dc4da575f9479cee486ca2029b87f5e4b86fb51daf653067934c1ff281e226
6
+ metadata.gz: c4cbe7267ae0da53f46850845ac0771630176b98f02385062d66c8163d638a8f8f14961b6c8ae5c5f94b6e0626ab0a48009d68a09a5256cb477684aab084a54c
7
+ data.tar.gz: 6413a590fc049dbaa2a77333c52131a42811e34d98339b55353299e868c20ff03452c6aed3927852d907d1b33f0e3724d94985f5b007d648a235147e686fd773
data/README.md CHANGED
@@ -60,13 +60,14 @@ Initialize and configure the auditor so:
60
60
  Audit using the API methods inherited from SoarAuditorApi::AuditorAPI, e.g.:
61
61
 
62
62
  ```ruby
63
- @iut.warn("#{flow_id}:This is a test event")
63
+ @iut.warn("This is a test event")
64
64
  ```
65
65
 
66
66
  ## Detailed example
67
67
 
68
68
  ```ruby
69
69
  require 'logstash_auditor'
70
+ require 'time'
70
71
 
71
72
  class Main
72
73
  def test_sanity
@@ -81,7 +82,7 @@ class Main
81
82
  require 'digest'
82
83
  flow_id = Digest::SHA256.hexdigest("#{Time.now.to_i}#{rand(4000000)}")
83
84
 
84
- @iut.warn("#{flow_id}:This is a test event")
85
+ @iut.warn("#{flow_id}:#{Time.now.utc.iso8601(3)}::test1234")
85
86
  end
86
87
  end
87
88
 
@@ -1,3 +1,3 @@
1
1
  module LogstashAuditor
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
data/sanity/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'logstash_auditor', "~> 0.0.9"
3
+ gem 'logstash_auditor', "~> 0.0.10"
data/sanity/sanity.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'logstash_auditor'
2
+ require 'time'
2
3
 
3
4
  class Main
4
5
  def test_sanity
@@ -13,7 +14,7 @@ class Main
13
14
  require 'digest'
14
15
  flow_id = Digest::SHA256.hexdigest("#{Time.now.to_i}#{rand(4000000)}")
15
16
 
16
- @iut.warn("#{flow_id}:#{Time.now.utc}:test1234")
17
+ @iut.warn("#{flow_id}:#{Time.now.utc.iso8601(3)}::test1234")
17
18
  end
18
19
  end
19
20
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash_auditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barney de Villiers