Skip to content
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] Lens migration for visualizations to Kibana version 8.5.0 #5590

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/salesforce/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: 0.5.0
changes:
- description: Migrate visualizations to lens.
type: enhancement
link: https://github.com/elastic/integrations/pull/5590
- version: 0.4.1
changes:
- description: Added categories and/or subcategories.
Expand Down
Binary file modified packages/salesforce/img/salesforce-apex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/salesforce/img/salesforce-login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified packages/salesforce/img/salesforce-logout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
},
"title": "",
"type": "lens",
"visualizationType": "lnsMetric"
"visualizationType": "lnsLegacyMetric"
},
"enhancements": {},
"hidePanelTitles": true
Expand All @@ -158,98 +158,111 @@
"panelIndex": "ed7da063-bcce-4f03-a2f8-5f5e61679c94",
"title": "Percentage of user initiated logout [Logs Salesforce]",
"type": "lens",
"version": "8.4.1"
"version": "8.5.0"
},
{
"embeddableConfig": {
"enhancements": {},
"hidePanelTitles": false,
"savedVis": {
"data": {
"aggs": [
{
"enabled": true,
"id": "1",
"params": {
"emptyAsNull": false
},
"schema": "metric",
"type": "count"
},
{
"enabled": true,
"id": "2",
"params": {
"excludeIsRegex": true,
"field": "salesforce.logout.session.level",
"includeIsRegex": true,
"missingBucket": false,
"missingBucketLabel": "Missing",
"order": "desc",
"orderBy": "1",
"otherBucket": true,
"otherBucketLabel": "Other",
"size": 5
},
"schema": "segment",
"type": "terms"
}
],
"searchSource": {
"filter": [],
"indexRefName": "kibanaSavedObjectMeta.searchSourceJSON.index",
"query": {
"language": "kuery",
"query": "event.dataset : salesforce.logout*"
}
"attributes": {
"references": [
{
"id": "logs-*",
"name": "indexpattern-datasource-layer-071d449f-b93b-4b66-a79b-2ebdcc946a91",
"type": "index-pattern"
}
},
"description": "",
"params": {
"addTooltip": true,
"distinctColors": false,
"emptySizeRatio": 0.3,
"isDonut": false,
"labels": {
"last_level": false,
"percentDecimals": 2,
"position": "default",
"show": true,
"truncate": 100,
"values": true,
"valuesFormat": "value"
],
"state": {
"adHocDataViews": {},
"datasourceStates": {
"indexpattern": {
"layers": {
"071d449f-b93b-4b66-a79b-2ebdcc946a91": {
"columnOrder": [
"df7a9bba-39db-470f-a325-0b9b7aeabc35",
"9ccd37bf-1f93-4896-afc5-06ae3f6f909f"
],
"columns": {
"9ccd37bf-1f93-4896-afc5-06ae3f6f909f": {
"customLabel": false,
"dataType": "number",
"isBucketed": false,
"label": "Count of records",
"operationType": "count",
"params": {
"emptyAsNull": true
},
"scale": "ratio",
"sourceField": "___records___"
},
"df7a9bba-39db-470f-a325-0b9b7aeabc35": {
"customLabel": false,
"dataType": "string",
"isBucketed": true,
"label": "Top 5 values of salesforce.logout.session.level",
"operationType": "terms",
"params": {
"missingBucket": false,
"orderBy": {
"columnId": "9ccd37bf-1f93-4896-afc5-06ae3f6f909f",
"type": "column"
},
"orderDirection": "desc",
"otherBucket": true,
"parentFormat": {
"id": "terms"
},
"size": 5
},
"scale": "ordinal",
"sourceField": "salesforce.logout.session.level"
}
},
"incompleteColumns": {}
}
}
}
},
"legendDisplay": "hide",
"legendPosition": "right",
"legendSize": "auto",
"maxLegendLines": 1,
"nestedLegend": false,
"palette": {
"name": "default",
"type": "palette"
"filters": [],
"internalReferences": [],
"query": {
"language": "kuery",
"query": "event.dataset : salesforce.logout*"
},
"truncateLegend": true,
"type": "pie"
},
"type": "pie",
"uiState": {
"vis": {
"legendOpen": false
"visualization": {
"layers": [
{
"categoryDisplay": "default",
"layerId": "071d449f-b93b-4b66-a79b-2ebdcc946a91",
"layerType": "data",
"legendDisplay": "default",
"metric": "9ccd37bf-1f93-4896-afc5-06ae3f6f909f",
"nestedLegend": false,
"numberDisplay": "value",
"primaryGroups": [
"df7a9bba-39db-470f-a325-0b9b7aeabc35"
]
}
],
"shape": "pie"
}
}
}
},
"title": "",
"type": "lens",
"visualizationType": "lnsPie"
},
"enhancements": {},
"hidePanelTitles": false
},
"gridData": {
"h": 10,
"i": "c0f53cb0-650d-49ae-8b35-82dcf9dab321",
"i": "3c17916f-f16e-4ac8-bccf-73ecd11f212e",
"w": 24,
"x": 24,
"y": 0
},
"panelIndex": "c0f53cb0-650d-49ae-8b35-82dcf9dab321",
"panelIndex": "3c17916f-f16e-4ac8-bccf-73ecd11f212e",
"title": "Session levels used while logging out [Logs Salesforce]",
"type": "visualization",
"version": "8.4.1"
"type": "lens",
"version": "8.5.0"
},
{
"embeddableConfig": {
Expand Down Expand Up @@ -394,7 +407,7 @@
"panelIndex": "e0bbbc54-6b58-4290-bf0c-2197bacc9d57",
"title": "Logout over time [Logs Salesforce]",
"type": "lens",
"version": "8.4.1"
"version": "8.5.0"
},
{
"embeddableConfig": {
Expand Down Expand Up @@ -463,15 +476,15 @@
"layers": [
{
"categoryDisplay": "default",
"groups": [
"cccd83a1-7155-4483-a770-f84c41825e42"
],
"layerId": "53b4bc18-a6f2-4d8b-bf4b-24f553673f92",
"layerType": "data",
"legendDisplay": "default",
"metric": "19b9fe7e-d3f1-40b7-a9b8-762233a8ba30",
"nestedLegend": false,
"numberDisplay": "percent"
"numberDisplay": "percent",
"primaryGroups": [
"cccd83a1-7155-4483-a770-f84c41825e42"
]
}
],
"shape": "treemap"
Expand All @@ -494,7 +507,7 @@
"panelIndex": "b01bd690-ed72-4ca8-9b6f-9c81d338ccee",
"title": "Distribution of session types [Logs Salesforce]",
"type": "lens",
"version": "8.4.1"
"version": "8.5.0"
},
{
"embeddableConfig": {
Expand Down Expand Up @@ -620,7 +633,7 @@
"panelIndex": "aa5b3dcc-cf05-47d1-9e8f-7619950d6de1",
"title": "Top 10 IP addresses by Logout request count [Logs Salesforce]",
"type": "lens",
"version": "8.4.1"
"version": "8.5.0"
},
{
"embeddableConfig": {
Expand All @@ -637,12 +650,12 @@
"isLayerTOCOpen": true,
"mapBuffer": {
"maxLat": 89.99075,
"maxLon": 540,
"maxLon": 900,
"minLat": -85.05113,
"minLon": -540
"minLon": -900
},
"mapCenter": {
"lat": 40.44695,
"lat": 39.90974,
"lon": -42.96266,
"zoom": 0
},
Expand All @@ -658,7 +671,7 @@
"panelIndex": "f6c9b613-b31a-4ba9-ad94-188afa349528",
"title": "Logout activity by region [Logs Salesforce]",
"type": "map",
"version": "8.4.1"
"version": "8.5.0"
}
],
"refreshInterval": {
Expand All @@ -671,10 +684,10 @@
"title": "[Logs Salesforce] Logout Dashboard",
"version": 1
},
"coreMigrationVersion": "8.4.1",
"coreMigrationVersion": "8.5.0",
"id": "salesforce-6c750440-5749-11ec-8f0b-05e8b06e1b10-pkg",
"migrationVersion": {
"dashboard": "8.4.0"
"dashboard": "8.5.0"
},
"references": [
{
Expand All @@ -684,7 +697,7 @@
},
{
"id": "logs-*",
"name": "c0f53cb0-650d-49ae-8b35-82dcf9dab321:kibanaSavedObjectMeta.searchSourceJSON.index",
"name": "3c17916f-f16e-4ac8-bccf-73ecd11f212e:indexpattern-datasource-layer-071d449f-b93b-4b66-a79b-2ebdcc946a91",
"type": "index-pattern"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@
"visualizationType": "lnsXY"
},
"enhancements": {},
"hidePanelTitles": false
"hidePanelTitles": false,
"type": "lens"
},
"gridData": {
"h": 15,
Expand All @@ -179,7 +180,7 @@
"panelIndex": "86d0aa67-c1da-4027-9368-9d0c7b393ee7",
"title": "Top 10 Actions performed by delegated users [Logs Salesforce]",
"type": "lens",
"version": "8.4.1"
"version": "8.5.0"
},
{
"embeddableConfig": {
Expand Down Expand Up @@ -301,7 +302,8 @@
"visualizationType": "lnsXY"
},
"enhancements": {},
"hidePanelTitles": false
"hidePanelTitles": false,
"type": "lens"
},
"gridData": {
"h": 15,
Expand All @@ -313,7 +315,7 @@
"panelIndex": "86eca459-ead0-451d-a319-db689af6fecd",
"title": "Top 10 Sections affected [Logs Salesforce]",
"type": "lens",
"version": "8.4.1"
"version": "8.5.0"
},
{
"embeddableConfig": {
Expand Down Expand Up @@ -470,7 +472,8 @@
"visualizationType": "lnsXY"
},
"enhancements": {},
"hidePanelTitles": false
"hidePanelTitles": false,
"type": "lens"
},
"gridData": {
"h": 15,
Expand All @@ -482,7 +485,7 @@
"panelIndex": "0e7e3952-b099-4b91-b6f3-9e0239707f87",
"title": "Top 10 Actions over time [Logs Salesforce]",
"type": "lens",
"version": "8.4.1"
"version": "8.5.0"
},
{
"embeddableConfig": {
Expand Down Expand Up @@ -673,7 +676,8 @@
"visualizationType": "lnsDatatable"
},
"enhancements": {},
"hidePanelTitles": false
"hidePanelTitles": false,
"type": "lens"
},
"gridData": {
"h": 18,
Expand All @@ -685,7 +689,7 @@
"panelIndex": "86bc6d31-3998-4a2e-ad1e-e2c373abeca8",
"title": "Changes made in the setup [Logs Salesforce]",
"type": "lens",
"version": "8.4.1"
"version": "8.5.0"
}
],
"refreshInterval": {
Expand All @@ -698,10 +702,10 @@
"title": "[Logs Salesforce] Setup Audit Trail Dashboard",
"version": 1
},
"coreMigrationVersion": "8.4.1",
"coreMigrationVersion": "8.5.0",
"id": "salesforce-790da810-5749-11ec-8f0b-05e8b06e1b10-pkg",
"migrationVersion": {
"dashboard": "8.4.0"
"dashboard": "8.5.0"
},
"references": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/salesforce/manifest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
format_version: 1.0.0
name: salesforce
title: Salesforce
version: 0.4.1
version: 0.5.0
license: basic
description: Collect logs from Salesforce with Elastic Agent.
type: integration
Expand Down