logstash_auditor 0.0.11 → 0.0.12

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: 7078c71ac9bc1d415fc2ef731c8b1b4144f28ffc
4
- data.tar.gz: 52a20a155a37a954ce73001673268ade2875ea23
3
+ metadata.gz: a9cc6d064d3d11f14686acb254176b11ee624ff8
4
+ data.tar.gz: 24ddd148e81256ae84904d5d57e54c72b7452ff8
5
5
  SHA512:
6
- metadata.gz: 6eea2c171322c362df0bb31cedef093bb9a27b81474cf85a61ff0ddf4533e33bb8260b653fe80c9f1c2e069a73eabf874b767f476ee93dd19402db49962d3d4b
7
- data.tar.gz: 36cbc1877230476134423fcf7255700b61209ac627b0daec195f018c23d8b84fc81a2183febe4648f7dc5797b189312a508536719013bbd4f9617878c7bee03f
6
+ metadata.gz: 1e0d814443d6778d2a8122ba62dfaff92957a84e90caa06c388d4e879d58c61c0143c49699f01b7d445cd018dd6eec9dd7773cdb1239d482357052b80efe0c4f
7
+ data.tar.gz: 67d91aff5fdd7ae9808f04e170f2ab972c1b283a709bd61ef7e386662f61e662afb975a67d81e30a188b326416073c23a4101f04a09b41d9f40a16554ad62680
@@ -1,3 +1,3 @@
1
1
  module LogstashAuditor
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "rspec", "~> 3.0"
25
25
  spec.add_development_dependency "byebug", "~> 9"
26
26
  spec.add_development_dependency "elasticsearch", "~> 1"
27
+ spec.add_development_dependency "soar_auditing_format", "~> 0.0.2"
27
28
 
28
29
  spec.add_dependency "http", "~> 2"
29
30
  spec.add_dependency "soar_auditor_api", "~> 0.0.5"
data/sanity/Gemfile CHANGED
@@ -1,3 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'logstash_auditor', "~> 0.0.11"
3
+ gem 'logstash_auditor', "~> 0.0.12"
4
+ gem "soar_auditing_format", "~> 0.0.2"
data/sanity/sanity.rb CHANGED
@@ -1,5 +1,7 @@
1
1
  require 'logstash_auditor'
2
+ require 'soar_auditing_format'
2
3
  require 'time'
4
+ require 'securerandom'
3
5
 
4
6
  class Main
5
7
  def test_sanity
@@ -10,8 +12,10 @@ class Main
10
12
  "password" => "auditorpassword",
11
13
  "timeout" => 3}
12
14
  @iut.configure(@logstash_configuration)
15
+ @iut.set_audit_level = :debug
13
16
 
14
- @iut.warn("#{SecureRandom.hex(32)}:#{Time.now.utc.iso8601(3)}:test1234")
17
+ my_optional_field = SoarAuditingFormatter::Formatter.optional_field_format("mykey", "myfield")
18
+ @iut.debug(SoarAuditingFormatter::Formatter.format(:debug,SecureRandom.hex(32),Time.now,"#{my_optional_field} test message with optional field"))
15
19
  end
16
20
  end
17
21
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash_auditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Barney de Villiers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-26 00:00:00.000000000 Z
11
+ date: 2016-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: soar_auditing_format
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.0.2
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.0.2
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: http
85
99
  requirement: !ruby/object:Gem::Requirement