Backport PR #31774 to 7.0 (#32177)

This commit is contained in:
alakahakai 2019-02-28 13:32:09 -08:00 committed by GitHub
parent 7731105624
commit 3131293760
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 67 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 KiB

View file

@ -65,6 +65,7 @@ import { uptimeMonitorsSpecProvider } from './uptime_monitors';
import { cloudwatchLogsSpecProvider } from './cloudwatch_logs';
import { awsMetricsSpecProvider } from './aws_metrics';
import { mssqlMetricsSpecProvider } from './mssql_metrics';
import { zeekLogsSpecProvider } from './zeek_logs';
export function registerTutorials(server) {
server.registerTutorial(systemLogsSpecProvider);
@ -115,4 +116,5 @@ export function registerTutorials(server) {
server.registerTutorial(cloudwatchLogsSpecProvider);
server.registerTutorial(awsMetricsSpecProvider);
server.registerTutorial(mssqlMetricsSpecProvider);
server.registerTutorial(zeekLogsSpecProvider);
}

View file

@ -0,0 +1,65 @@
/*
* 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 { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions';
export function zeekLogsSpecProvider(server, context) {
const moduleName = 'zeek';
const platforms = ['OSX', 'DEB', 'RPM'];
return {
id: 'zeekLogs',
name: i18n.translate('kbn.server.tutorials.zeekLogs.nameTitle', {
defaultMessage: 'Zeek logs',
}),
category: TUTORIAL_CATEGORY.SECURITY,
shortDescription: i18n.translate('kbn.server.tutorials.zeekLogs.shortDescription', {
defaultMessage: 'Collect the logs created by Zeek/Bro.',
}),
longDescription: i18n.translate('kbn.server.tutorials.zeekLogs.longDescription', {
defaultMessage: 'The `zeek` Filebeat module collects the logs from \
[Zeek](https://www.zeek.org//documentation/index.html). \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-zeek.html',
},
}),
//TODO: euiIconType: 'logoZeek',
artifacts: {
dashboards: [
{
id: '7cbb5410-3700-11e9-aa6d-ff445a78330c',
linkLabel: i18n.translate('kbn.server.tutorials.zeekLogs.artifacts.dashboards.linkLabel', {
defaultMessage: 'Zeek logs dashboard',
}),
isOverview: true
}
],
exportedFields: {
documentationUrl: '{config.docs.beats.filebeat}/exported-fields-zeek.html'
}
},
completionTimeMinutes: 10,
previewImagePath: '/plugins/kibana/home/tutorial_resources/zeek_logs/screenshot.png',
onPrem: onPremInstructions(moduleName, platforms, context),
elasticCloud: cloudInstructions(moduleName, platforms),
onPremElasticCloud: onPremCloudInstructions(moduleName, platforms)
};
}