logstash-plugins / logstash-input-azure_event_hubs

Logstash input for consuming events from Azure Event Hubs
Apache License 2.0
18 stars 28 forks source link

Feature Request : GetEnqueueTime in Milliseconds #23

Open gopikishanm opened 5 years ago

gopikishanm commented 5 years ago

Hi,

When I receive events and send them to Elastic search, I have the event timestamp in seconds. Below is the code line in processor.rb

event.set("[@metadata][azure_event_hubs][timestamp]",payload.getSystemProperties.getEnqueuedTime.getEpochSecond)

Can we have this in milliseconds so that we can calculate the time taken for logstash to process in milliseconds. Something like below

event.set("[@metadata][azure_event_hubs][timestamp]",payload.getSystemProperties.getEnqueuedTime.toEpochMilli)