Skip to content

Commit

Permalink
add azure logs home (elastic#66910)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit 9d84a86)
  • Loading branch information
narph committed Jun 2, 2020
1 parent c1edded commit 97f0db9
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 74 additions & 0 deletions src/plugins/home/server/tutorials/azure_logs/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { i18n } from '@kbn/i18n';
import { TutorialsCategory } from '../../services/tutorials';
import {
onPremInstructions,
cloudInstructions,
onPremCloudInstructions,
} from '../instructions/filebeat_instructions';
import {
TutorialContext,
TutorialSchema,
} from '../../services/tutorials/lib/tutorials_registry_types';

export function azureLogsSpecProvider(context: TutorialContext): TutorialSchema {
const moduleName = 'azure';
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'] as const;
return {
id: 'azureLogs',
name: i18n.translate('home.tutorials.azureLogs.nameTitle', {
defaultMessage: 'Azure logs',
}),
isBeta: true,
category: TutorialsCategory.LOGGING,
shortDescription: i18n.translate('home.tutorials.azureLogs.shortDescription', {
defaultMessage: 'Collects Azure activity and audit related logs.',
}),
longDescription: i18n.translate('home.tutorials.azureLogs.longDescription', {
defaultMessage:
'The `azure` Filebeat module collects Azure activity and audit related logs. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-azure.html',
},
}),
euiIconType: 'logoAzure',
artifacts: {
dashboards: [
{
id: '41e84340-ec20-11e9-90ec-112a988266d5',
linkLabel: i18n.translate('home.tutorials.azureLogs.artifacts.dashboards.linkLabel', {
defaultMessage: 'Azure logs dashboard',
}),
isOverview: true,
},
],
exportedFields: {
documentationUrl: '{config.docs.beats.filebeat}/exported-fields-azure.html',
},
},
completionTimeMinutes: 10,
previewImagePath: '/plugins/home/assets/azure_logs/screenshot.png',
onPrem: onPremInstructions(moduleName, platforms, context),
elasticCloud: cloudInstructions(moduleName, platforms),
onPremElasticCloud: onPremCloudInstructions(moduleName, platforms),
};
}
2 changes: 2 additions & 0 deletions src/plugins/home/server/tutorials/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ import { ibmmqMetricsSpecProvider } from './ibmmq_metrics';
import { statsdMetricsSpecProvider } from './statsd_metrics';
import { redisenterpriseMetricsSpecProvider } from './redisenterprise_metrics';
import { openmetricsMetricsSpecProvider } from './openmetrics_metrics';
import { azureLogsSpecProvider } from './azure_logs';

export const builtInTutorials = [
systemLogsSpecProvider,
Expand Down Expand Up @@ -162,4 +163,5 @@ export const builtInTutorials = [
statsdMetricsSpecProvider,
redisenterpriseMetricsSpecProvider,
openmetricsMetricsSpecProvider,
azureLogsSpecProvider,
];

0 comments on commit 97f0db9

Please sign in to comment.