Sha256: bf8318b6aa64bbc728db21bfc6f7813e527930a184aaf1494b6d93e5f29e0d1b
Contents?: true
Size: 744 Bytes
Versions: 2
Compression:
Stored size: 744 Bytes
Contents
require 'logstash_auditor' require 'soar_auditing_format' require 'time' require 'securerandom' class Main def test_sanity @iut = LogstashAuditor::LogstashAuditor.new @logstash_configuration = { "host_url" => "http://localhost:8080", "username" => "auditorusername", "password" => "auditorpassword", "timeout" => 3} @iut.configure(@logstash_configuration) @iut.set_audit_level(:debug) my_optional_field = SoarAuditingFormatter::Formatter.optional_field_format("mykey", "myfield") @iut.debug(SoarAuditingFormatter::Formatter.format(:debug,'my-sanity-service-id',SecureRandom.hex(32),Time.now,"#{my_optional_field} test message with optional field")) end end main = Main.new main.test_sanity
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
logstash_auditor-0.0.16 | sanity/sanity.rb |
logstash_auditor-0.0.14 | sanity/sanity.rb |