- Notifications
You must be signed in to change notification settings - Fork 514
[O11y][Salesforce] Add custom field for _id and update dashboard #6041
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
[O11y][Salesforce] Add custom field for _id and update dashboard #6041
Conversation
🌐 Coverage report
|
| 2. Click on the Connected App name created by the user to generate the client id and client secret (Refer to Client Key and Client Secret for Authentication) under the Master Label. | ||
| 3. Click on Edit Policies, and select `Relax IP restrictions` from the dropdown for IP Relaxation. | ||
| | ||
| - If **Login events table [Logs Salesforce]** does not display older documents after upgrading to ``0.7.0`` or later versions, then this issue can be solved by reindexing the ``login_rest`` data stream's indices. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe, there exist there are two cases under the troubleshooting section.
Please separate out two cases . Currently it is difficult to find out the 2 cases of troubleshooting . Formatting must be adjusted too.
| } | ||
| ``` | ||
| | ||
| 5. Verify data is reindexed completely. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How to you verify this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the example response of reindex API. If there would be any failure it would be verified via failures parameter. Otherwise total should be equal to addition of created and updated documents.
{ "took": 308, "timed_out": false, "total": 100, "updated": 0, "created": 100, "deleted": 0, "batches": 1, "version_conflicts": 0, "noops": 0, "retries": { "bulk": 0, "search": 0 }, "throttled_millis": 0, "requests_per_second": -1, "throttled_until_millis": 0, "failures": [] } packages/salesforce/changelog.yml Outdated
| @@ -1,4 +1,9 @@ | |||
| # newer versions go on top | |||
| - version: 0.7.0 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be a bugfix with version number 0.6.1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The meta fields are supported in dashboards till 8.4.0. But after 8.4.0, the dashboard shows an error. Should we consider it bugfix because this issue occurred due to functional changes of meta fields?
packages/salesforce/docs/README.md Outdated
| 2. Click on the Connected App name created by the user to generate the client id and client secret (Refer to Client Key and Client Secret for Authentication) under the Master Label. | ||
| 3. Click on Edit Policies, and select `Relax IP restrictions` from the dropdown for IP Relaxation. | ||
| | ||
| - If **Login events table [Logs Salesforce]** does not display older documents after upgrading to ``0.7.0`` or later versions, then this issue can be solved by reindexing the ``login_rest`` data stream's indices. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This depends on the discussion whether the package version is 0.6.1 or 0.7.0. TBD
packages/salesforce/changelog.yml Outdated
| # newer versions go on top | ||
| - version: 0.7.0 | ||
| changes: | ||
| - description: Add custom field for _id and update dashboards. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description is too technical and around some low level details.
I believe the core of the issue is the PR indent to make the dashboard compatible with certain version of Lens. It is what must be put under the changelog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: Make dashboard compatible with meta fields for Kibana 8.6.0 and above
Let me know if this looks good to you?
packages/salesforce/manifest.yml Outdated
| name: salesforce | ||
| title: Salesforce | ||
| version: 0.6.0 | ||
| version: 0.7.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBD
…y-salesforce-update-id-field-in-dashboard
packages/salesforce/docs/README.md Outdated
| | ||
| ### Missing old events in **Login events table [Logs Salesforce]** panel | ||
| | ||
| If **Login events table [Logs Salesforce]** does not display older documents after upgrading to ``0.8.0`` or later versions, then this issue can be solved by reindexing the ``login_rest`` data stream's indices. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this phrase - [Logs Salesforce]
packages/salesforce/docs/README.md Outdated
| 2. Click on the Connected App name created by the user to generate the client id and client secret (Refer to Client Key and Client Secret for Authentication) under the Master Label. | ||
| 3. Click on Edit Policies, and select `Relax IP restrictions` from the dropdown for IP Relaxation. | ||
| | ||
| ### Missing old events in **Login events table [Logs Salesforce]** panel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this phrase - [Logs Salesforce]
packages/salesforce/docs/README.md Outdated
| ``` | ||
| | ||
| ``` | ||
| DELETE /_data_stream/<data_stream> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quiet a lot of things happening here.
You can have delete datastream and index template as a next step.
Also, Keep the examples of deleting datastream and index template together , keep templates of delete datastream & index template together
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated the PR.
agikthomas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
agikthomas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
agithomas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
| Package salesforce - 0.8.0 containing this change is available at https://epr.elastic.co/search?package=salesforce |
What does this PR do?
salesforce.login.document_idand copy the value of_idfield intosalesforce.login.document_id._idfield withsalesforce.login.document_idin [Logs Salesforce] Login dashboard._idfield withevent_idin [Logs Salesforce] Setup Audit Trail dashboard.Checklist
changelog.ymlfile.Screenshots
Related Issues