Sha256: 01b91a3926666a4bec3c5a154811033a3fcf6cae1180bad3f2aee490da389421

Contents?: true

Size: 274 Bytes

Versions: 20

Compression:

Stored size: 274 Bytes

Contents

require 'winevt'
require 'rexml/document'

@query = Winevt::EventLog::Query.new("Application", "*[System[(Level <= 3) and TimeCreated[timediff(@SystemTime) <= 86400000]]]")

@query.each do |eventlog, message, string_inserts|
  puts ({eventlog: eventlog, data: message})
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
winevt_c-0.4.3-x86-mingw32 example/eventlog.rb
winevt_c-0.4.3-x64-mingw32 example/eventlog.rb
winevt_c-0.4.2-x86-mingw32 example/eventlog.rb
winevt_c-0.4.2-x64-mingw32 example/eventlog.rb
winevt_c-0.4.1-x86-mingw32 example/eventlog.rb
winevt_c-0.4.1-x64-mingw32 example/eventlog.rb
winevt_c-0.4.0-x86-mingw32 example/eventlog.rb
winevt_c-0.4.0-x64-mingw32 example/eventlog.rb
winevt_c-0.3.8-x86-mingw32 example/eventlog.rb
winevt_c-0.3.8-x64-mingw32 example/eventlog.rb
winevt_c-0.3.7-x86-mingw32 example/eventlog.rb
winevt_c-0.3.7-x64-mingw32 example/eventlog.rb
winevt_c-0.3.6-x64-mingw32 example/eventlog.rb
winevt_c-0.3.6-x86-mingw32 example/eventlog.rb
winevt_c-0.3.4-x64-mingw32 example/eventlog.rb
winevt_c-0.3.4-x86-mingw32 example/eventlog.rb
winevt_c-0.3.3-x86-mingw32 example/eventlog.rb
winevt_c-0.3.3-x64-mingw32 example/eventlog.rb
winevt_c-0.3.2-x64-mingw32 example/eventlog.rb
winevt_c-0.3.2-x86-mingw32 example/eventlog.rb