Skip to content

Commit

Permalink
Add EventHub user properties in @metadata object (#66)
Browse files Browse the repository at this point in the history
* Add EventHub user properties in @metadata object
* Update VERSION
* Update CHANGELOG.md
  • Loading branch information
mirolessev committed Jun 1, 2021
1 parent 322e47a commit dcb85da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.3.0
- Add EventHub `user properties` in `@metadata` object [#66](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/66)

## 1.2.3
- Fixed missing configuration of `prefetch_count` and `receive_timeout` [#61](https://github.com/logstash-plugins/logstash-input-azure_event_hubs/pull/61)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.3
1.3.0
1 change: 1 addition & 0 deletions lib/logstash/inputs/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def onEvents(context, batch)
event.set("[@metadata][azure_event_hubs][sequence]", payload.getSystemProperties.getSequenceNumber)
event.set("[@metadata][azure_event_hubs][timestamp]",payload.getSystemProperties.getEnqueuedTime.getEpochSecond)
event.set("[@metadata][azure_event_hubs][event_size]", bytes.size)
event.set("[@metadata][azure_event_hubs][user_properties]", payload.getProperties)
end
@queue << event
if @checkpoint_interval > 0
Expand Down

0 comments on commit dcb85da

Please sign in to comment.