You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhancement: The enhancement should enable the use of a cursor value as a query parameter, along with the support of time library functions, to allow for dynamic updates to the URL.
Use case: This feature will be beneficial for integrations like Proofpoint On Demand, where it will facilitate the retrieval of historical data by leveraging the 'sinceTime' query parameter.
In above, when data collection first runs, the sinceTime should be set to (now-duration(initial_interval)) to collect historical data. Whenever the WebSocket connection is interrupted or closes unexpectedly, the next time it restarts, the sinceTime should be taken from state.cursor.last_timestamp to continue collecting data from where it left off.
The ideal condition for the {sinceTime} is: has(state.cursor) && has(state.cursor.last_timestamp) ? state.cursor.last_timestamp : (now-duration(initial_interval)).
The text was updated successfully, but these errors were encountered:
brijesh-elastic
changed the title
[filebeat][websocket] - Add support for passing query parameter in Websocket URL
[filebeat][websocket] - Add support for passing cursor value as query parameter in Websocket URL
Jun 12, 2024
Hi @brijesh-elastic, can you please expand upon the description of this enhancement request with the help of an example, it would make this feature request more descriptive for keeping track of.
Enhancement: The enhancement should enable the use of a
cursor
value as a query parameter, along with the support of time library functions, to allow for dynamic updates to the URL.Use case: This feature will be beneficial for integrations like Proofpoint On Demand, where it will facilitate the retrieval of historical data by leveraging the 'sinceTime' query parameter.
Example:
In above, when data collection first runs, the
sinceTime
should be set to(now-duration(initial_interval))
to collect historical data. Whenever the WebSocket connection is interrupted or closes unexpectedly, the next time it restarts, thesinceTime
should be taken fromstate.cursor.last_timestamp
to continue collecting data from where it left off.The ideal condition for the
{sinceTime}
is:has(state.cursor) && has(state.cursor.last_timestamp) ? state.cursor.last_timestamp : (now-duration(initial_interval))
.The text was updated successfully, but these errors were encountered: