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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bef5c376132c73838d26567b3d8709c5d5632af8
4
- data.tar.gz: bcc641af409d223f63cae61ed50803d8a2c72095
3
+ metadata.gz: 8ff80d2932b17bd1986c8ab681cfa98bd8e4240b
4
+ data.tar.gz: 31f545a50d6f851074796230ea28faacecbb3c70
5
5
  SHA512:
6
- metadata.gz: aadf4d2cce5fd6b1efd7c44ec9432bcb8596417563226d7f17ee9ea91eee04ebf2e201830b060633fcdd7d7e90a202bce0dcd88563f70cd9deb614f1868351e9
7
- data.tar.gz: 777d9763e97d764e523688d897ad5f4805bdf8810fab06d61590b7692df622d62784b6c488a076f79eee454d6e1ac9315c205e42849b2f6b772593e9d65bc995
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
- my_optional_field = SoarAuditingFormatter::Formatter.optional_field_format("mykey", "myfield")
91
- @iut.debug(SoarAuditingFormatter::Formatter.format(:debug,'my-sanity-service-id',SecureRandom.hex(32),Time.now,"#{my_optional_field} test message with optional field"))
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
 
@@ -1,3 +1,3 @@
1
1
  module LogstashAuditor
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
data/sanity/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'logstash_auditor', "~> 0.0.16"
3
+ gem 'logstash_auditor', "~> 0.0.17"
4
4
  gem "soar_auditing_format", "~> 0.0.5"
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
- my_optional_field = SoarAuditingFormatter::Formatter.optional_field_format("mykey", "myfield")
18
- @iut.debug(SoarAuditingFormatter::Formatter.format(:debug,'my-sanity-service-id',SecureRandom.hex(32),Time.now,"#{my_optional_field} test message with optional field"))
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
 
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.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barney de Villiers