Sha256: e3aee96ccb6f8917522d7f2371bf1c4b1a776a9622620c2773093081a316b899
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 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,SecureRandom.hex(32),Time.now,"#{my_optional_field} test message with optional field")) end end main = Main.new main.test_sanity
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logstash_auditor-0.0.13 | sanity/sanity.rb |