mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Merge pull request #429 from drogerschariot/master
Added @message to eventlog input
This commit is contained in:
commit
40a78687d8
1 changed files with 1 additions and 0 deletions
|
@ -92,6 +92,7 @@ class LogStash::Inputs::EventLog < LogStash::Inputs::Base
|
|||
data = unwrap_racob_variant_array(event.Data)
|
||||
# Data is an array of signed shorts, so convert to bytes and pack a string
|
||||
e["Data"] = data.map{|byte| (byte > 0) ? byte : 256 + byte}.pack("c*")
|
||||
e.message = event.Message
|
||||
queue << e
|
||||
# Update the newest-record pointer if I'm shipping the newest record in this batch
|
||||
next_newest_shipped_event = event.RecordNumber if (event_index += 1) == 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue