Skip to content

Commit

Permalink
Merge pull request #5 from DirkRichter/master
Browse files Browse the repository at this point in the history
avoid log event duplication (fixes #4)
  • Loading branch information
welleby authored Oct 15, 2019
2 parents 83c51db + c157381 commit 3c6f669
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/logstash/filters/transaction_time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ def filter(event)
else #End of transaction
@transactions[uid].addSecond(event,@storeEvent)
transaction_event = new_transactiontime_event(@transactions[uid], @attachData)
filter_matched(transaction_event)
if (@attach_event.eql?"none") # raise new log event iff data was not attached (avoid duplicates)
filter_matched(transaction_event)
end
yield transaction_event if block_given?
@transactions.delete(uid)
end
Expand Down

0 comments on commit 3c6f669

Please sign in to comment.