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][Nginx] Migrate [Logs Nginx] Access and error logs dashboard visualizations to lens in kibana 8.5.0 #5782

Merged
Show file tree
Hide file tree
Changes from 3 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/nginx/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# newer versions go on top
- version: "1.11.0"
changes:
- description: Migrate "[Logs Nginx] Access and error logs" dashboard visualizations to lens.
type: enhancement
link: https://github.com/elastic/integrations/pull/5782
- version: "1.8.0"
changes:
- description: Added changes to support TSDB Enablement.
Expand Down
Binary file modified packages/nginx/img/nginx-logs-access-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"attributes": {
"controlGroupInput": {
"chainingSystem": "HIERARCHICAL",
"controlStyle": "oneLine",
"ignoreParentSettingsJSON": "{\"ignoreFilters\":false,\"ignoreQuery\":false,\"ignoreTimerange\":false,\"ignoreValidations\":false}",
"panelsJSON": "{\"7bb9a2dc-1197-4366-ba2d-f5ab5792949f\":{\"order\":0,\"width\":\"medium\",\"grow\":true,\"type\":\"optionsListControl\",\"explicitInput\":{\"fieldName\":\"host.hostname\",\"title\":\"Nginx instance\",\"singleSelect\":true,\"id\":\"7bb9a2dc-1197-4366-ba2d-f5ab5792949f\",\"selectedOptions\":[],\"enhancements\":{}}}}"
},
"description": "Dashboard for the Logs Nginx integration",
"hits": 0,
"kibanaSavedObjectMeta": {
Expand Down Expand Up @@ -35,11 +41,12 @@
"i": "11",
"w": 48,
"x": 0,
"y": 17
"y": 20
},
"panelIndex": "11",
"panelRefName": "panel_0",
"version": "7.9.3"
"panelRefName": "panel_11",
"type": "search",
"version": "8.5.0"
},
{
"embeddableConfig": {
Expand All @@ -60,26 +67,12 @@
"i": "16",
"w": 48,
"x": 0,
"y": 29
"y": 32
},
"panelIndex": "16",
"panelRefName": "panel_1",
"version": "7.9.3"
},
{
"embeddableConfig": {
"enhancements": {}
},
"gridData": {
"h": 12,
"i": "18",
"w": 48,
"x": 0,
"y": 5
},
"panelIndex": "18",
"panelRefName": "panel_2",
"version": "7.9.3"
"panelRefName": "panel_16",
"type": "search",
"version": "8.5.0"
},
{
"embeddableConfig": {
Expand All @@ -88,63 +81,194 @@
"gridData": {
"h": 5,
"i": "19",
"w": 35,
"x": 13,
"w": 48,
"x": 0,
"y": 0
},
"panelIndex": "19",
"panelRefName": "panel_3",
"version": "7.9.3"
"panelRefName": "panel_19",
"type": "visualization",
"version": "8.5.0"
},
{
"embeddableConfig": {
"attributes": {
"references": [
{
"id": "logs-*",
"name": "indexpattern-datasource-layer-a55e7341-c9fe-4f42-a812-75284e0f4a7f",
"type": "index-pattern"
},
{
"id": "logs-*",
"name": "xy-visualization-layer-2aace9d9-80e4-4b86-8a21-96ba8c3a8fe6",
"type": "index-pattern"
}
],
"state": {
"adHocDataViews": {},
"datasourceStates": {
"indexpattern": {
"layers": {
"a55e7341-c9fe-4f42-a812-75284e0f4a7f": {
"columnOrder": [
"0296f5a8-ce68-4c97-b432-d50d12da4c0d",
"d28895a6-e212-429d-9ff5-e471da47f3fc"
],
"columns": {
"0296f5a8-ce68-4c97-b432-d50d12da4c0d": {
"dataType": "date",
"isBucketed": true,
"label": "@timestamp",
"operationType": "date_histogram",
"params": {
"dropPartials": true,
"includeEmptyRows": true,
"interval": "auto"
},
"scale": "interval",
"sourceField": "@timestamp"
},
"d28895a6-e212-429d-9ff5-e471da47f3fc": {
"customLabel": true,
"dataType": "number",
"isBucketed": false,
"label": "Access logs",
"operationType": "count",
"params": {
"emptyAsNull": true
},
"scale": "ratio",
"sourceField": "___records___"
}
},
"incompleteColumns": {}
}
}
}
},
"filters": [],
"internalReferences": [],
"query": {
"language": "kuery",
"query": "data_stream.dataset:nginx.access"
},
"visualization": {
"axisTitlesVisibilitySettings": {
"x": true,
"yLeft": false,
"yRight": true
},
"emphasizeFitting": true,
"fittingFunction": "Zero",
"layers": [
{
"accessors": [
"d28895a6-e212-429d-9ff5-e471da47f3fc"
],
"layerId": "a55e7341-c9fe-4f42-a812-75284e0f4a7f",
"layerType": "data",
"position": "top",
"seriesType": "line",
"showGridlines": false,
"xAccessor": "0296f5a8-ce68-4c97-b432-d50d12da4c0d",
"yConfig": [
{
"axisMode": "left",
"color": "#68bc00",
"forAccessor": "d28895a6-e212-429d-9ff5-e471da47f3fc"
}
]
},
{
"annotations": [
{
"color": "#ff0000",
"icon": "triangle",
"id": "09ba3398-1007-41ab-9aa7-bee24bc06e70",
"key": {
"type": "point_in_time"
},
"label": "Event",
"timeField": "@timestamp",
"type": "query"
}
],
"ignoreGlobalFilters": true,
"layerId": "2aace9d9-80e4-4b86-8a21-96ba8c3a8fe6",
"layerType": "annotations"
}
],
"legend": {
"isVisible": true,
"position": "bottom",
"showSingleSeries": true
},
"preferredSeriesType": "line",
"title": "Empty XY chart",
"valueLabels": "hide",
"valuesInLegend": true,
"yTitle": ""
}
},
"title": "",
"type": "lens",
"visualizationType": "lnsXY"
},
"enhancements": {}
},
"gridData": {
"h": 5,
"i": "723d15da-0fee-40a6-87f0-12c669f31b41",
"w": 13,
"h": 15,
"i": "8650d488-e9b2-4923-a417-83e4b34824b6",
"w": 48,
"x": 0,
"y": 0
"y": 5
},
"panelIndex": "723d15da-0fee-40a6-87f0-12c669f31b41",
"panelRefName": "panel_4",
"version": "7.9.3"
"panelIndex": "8650d488-e9b2-4923-a417-83e4b34824b6",
"title": "Access logs over time [Logs Nginx]",
"type": "lens",
"version": "8.5.0"
}
],
"timeRestore": false,
"title": "[Logs Nginx] Access and error logs",
"version": 1
},
"coreMigrationVersion": "8.5.0",
"id": "nginx-046212a0-a2a1-11e7-928f-5dbe6f6f5519",
"migrationVersion": {
"dashboard": "7.11.0"
"dashboard": "8.5.0"
},
"references": [
{
"id": "nginx-9eb25600-a1f0-11e7-928f-5dbe6f6f5519",
"name": "panel_0",
"name": "11:panel_11",
"type": "search"
},
{
"id": "nginx-6d9e66d0-a1f0-11e7-928f-5dbe6f6f5519",
"name": "panel_1",
"name": "16:panel_16",
"type": "search"
},
{
"id": "nginx-1cfb1a80-a1f4-11e7-928f-5dbe6f6f5519",
"name": "panel_2",
"id": "nginx-97109780-a2a5-11e7-928f-5dbe6f6f5519",
"name": "19:panel_19",
"type": "visualization"
},
{
"id": "nginx-97109780-a2a5-11e7-928f-5dbe6f6f5519",
"name": "panel_3",
"type": "visualization"
"id": "logs-*",
"name": "8650d488-e9b2-4923-a417-83e4b34824b6:indexpattern-datasource-layer-a55e7341-c9fe-4f42-a812-75284e0f4a7f",
"type": "index-pattern"
},
{
"id": "nginx-9484ecf0-3af5-11eb-94b7-0dab91df36a6",
"name": "panel_4",
"type": "visualization"
"id": "logs-*",
"name": "8650d488-e9b2-4923-a417-83e4b34824b6:xy-visualization-layer-2aace9d9-80e4-4b86-8a21-96ba8c3a8fe6",
"type": "index-pattern"
},
{
"id": "logs-*",
"name": "controlGroup_7bb9a2dc-1197-4366-ba2d-f5ab5792949f:optionsListDataView",
"type": "index-pattern"
}
],
"type": "dashboard"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@
"title": "Nginx access logs [Logs Nginx]",
"version": 1
},
"coreMigrationVersion": "8.5.0",
"id": "nginx-6d9e66d0-a1f0-11e7-928f-5dbe6f6f5519",
"migrationVersion": {
"search": "7.9.3"
"search": "8.0.0"
},
"references": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@
"title": "Nginx error logs [Logs Nginx]",
"version": 1
},
"coreMigrationVersion": "8.5.0",
"id": "nginx-9eb25600-a1f0-11e7-928f-5dbe6f6f5519",
"migrationVersion": {
"search": "7.9.3"
"search": "8.0.0"
},
"references": [
{
Expand Down
58 changes: 0 additions & 58 deletions packages/nginx/kibana/search/nginx-Logs-Nginx-integration.json

This file was deleted.

Loading