logstash_auditor 0.0.9 → 0.0.10
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/README.md +3 -2
- data/lib/logstash_auditor/version.rb +1 -1
- data/sanity/Gemfile +1 -1
- data/sanity/sanity.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 572802b484b52994900ae0cc0a56f8ca8bb11d63
|
4
|
+
data.tar.gz: 1ef506f9b0492520a9591e36f21d383035aa1159
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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("
|
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}
|
85
|
+
@iut.warn("#{flow_id}:#{Time.now.utc.iso8601(3)}::test1234")
|
85
86
|
end
|
86
87
|
end
|
87
88
|
|
data/sanity/Gemfile
CHANGED
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}
|
17
|
+
@iut.warn("#{flow_id}:#{Time.now.utc.iso8601(3)}::test1234")
|
17
18
|
end
|
18
19
|
end
|
19
20
|
|