logstash_auditor 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/lib/logstash_auditor/version.rb +1 -1
- data/sanity/Gemfile +1 -1
- data/sanity/sanity.rb +3 -2
- 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: 8ff80d2932b17bd1986c8ab681cfa98bd8e4240b
|
4
|
+
data.tar.gz: 31f545a50d6f851074796230ea28faacecbb3c70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4281ce7e48baea7ff8a2520c30749a889d0456a280418d96aadc5635e5e6d76fc9e5f8d08b50aab7881ec8e3d734996c08ab1b52fdbb87476e237ae21c82722e
|
7
|
+
data.tar.gz: e2853dedca5b99c1dae099e8939df7a88ad6ae374ef57576b936593598ff235d0435594634258dc2e3d577cf058eeef2f7351e0d900185141c00019de070e3bd
|
data/README.md
CHANGED
@@ -47,6 +47,8 @@ Afterwards destroy the running docker image as follows:
|
|
47
47
|
|
48
48
|
Debugging the docker image:
|
49
49
|
$ sudo docker exec -it <CONTAINER_ID> bash
|
50
|
+
$ sudo docker stop $(sudo docker ps -a -q)
|
51
|
+
$ sudo docker rm -f $(sudo docker ps -a -q)
|
50
52
|
|
51
53
|
## Usage
|
52
54
|
|
@@ -87,8 +89,9 @@ class Main
|
|
87
89
|
@iut.configure(@logstash_configuration)
|
88
90
|
@iut.set_audit_level(:debug)
|
89
91
|
|
90
|
-
|
91
|
-
|
92
|
+
my_optional_operation_field = SoarAuditingFormatter::Formatter.optional_field_format("operation", "Http.Get")
|
93
|
+
my_optional_method_name_field = SoarAuditingFormatter::Formatter.optional_field_format("method", "#{self.class}::#{__method__}::#{__LINE__}")
|
94
|
+
@iut.debug(SoarAuditingFormatter::Formatter.format(:debug,'my-sanity-service-id',SecureRandom.hex(32),Time.now.iso8601(3),"#{my_optional_method_name_field}#{my_optional_operation_field} test message with optional fields"))
|
92
95
|
end
|
93
96
|
end
|
94
97
|
|
data/sanity/Gemfile
CHANGED
data/sanity/sanity.rb
CHANGED
@@ -14,8 +14,9 @@ class Main
|
|
14
14
|
@iut.configure(@logstash_configuration)
|
15
15
|
@iut.set_audit_level(:debug)
|
16
16
|
|
17
|
-
|
18
|
-
|
17
|
+
my_optional_operation_field = SoarAuditingFormatter::Formatter.optional_field_format("operation", "Http.Get")
|
18
|
+
my_optional_method_name_field = SoarAuditingFormatter::Formatter.optional_field_format("method", "#{self.class}::#{__method__}::#{__LINE__}")
|
19
|
+
@iut.debug(SoarAuditingFormatter::Formatter.format(:debug,'my-sanity-service-id',SecureRandom.hex(32),Time.now.iso8601(3),"#{my_optional_method_name_field}#{my_optional_operation_field} test message with optional fields"))
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|