-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EBT] Add internal shipper that users can enable/disable on demand to audit the telemetry we collect. #132256
Comments
Pinging @elastic/kibana-core (Team:Core) |
From grooming:
Split this task into 2:
|
We can achieve a similar behaviour by leveraging the log entries coming from kibana/packages/analytics/client/src/analytics_client/analytics_client.ts Lines 133 to 137 in dd43c2d
We would only need to:
Then, we can document that adding the following to logging:
appenders:
json-layout:
type: console
layout:
type: json
loggers:
- name: analytics.events
level: all
appenders: [json-layout] IMO doing this will reduce a lot of our LOE and still achieve the same results. What do you think? |
What about client-side events? The logs approach will only work for server-side usages of EBT I believe? |
@pgayvallet right! That is a good point! Posibly, if we ever tackle the browser-side core logging service and any sort of redirection to the server, we'd get this same expected behaviour. But, for now, that's not the case. |
At Elastic we are open about the telemetry we collect, and we want to keep it this way for Event-based telemetry. For that reason, we need to implement a way of letting users see the data that we report through this new collection mechanism.
We can't simply generate a snapshot and print it to the user because in EBT we don't persist the data locally. We need a new approach to this.
Send all or selected events?
We can offer the user the possibility to audit all the events or a subset of them if they are only interested in some of them.
Where to ship the events?
IMO, we can approach this in 2 ways:
1. Logging events
When the user enables this feature, they'll see all the selected events in the logs. Users can use the logging configuration to log to a separate file if needed, and even use
filebeat
to ship it to their cluster or an external one.2. Write the events to Elasticsearch
When the user enables this feature, Kibana will ship all the selected events to an index of choice (how do we handle authentication?).
Additional considerations
In either implementation, browser-generated events will need to be sent to the server. In the Logging solution it may result in unsorted events as server events may make it faster to the logs than the ones coming from the browser through HTTP requests.
The text was updated successfully, but these errors were encountered: