Skip to content

Commit

Permalink
[7.x] Nats Logs Kibana Tutorial (elastic#31255) (elastic#33106)
Browse files Browse the repository at this point in the history
Backports the following commits to 7.x:
 - Nats Logs Kibana Tutorial  (elastic#31255)
  • Loading branch information
ruflin authored Mar 13, 2019
1 parent 86939ae commit 1e6874b
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 2 deletions.
64 changes: 64 additions & 0 deletions src/legacy/core_plugins/kibana/server/tutorials/nats_logs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* 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 natsLogsSpecProvider(server, context) {
const moduleName = 'nats';
const geoipRequired = false;
const uaRequired = false;
const platforms = ['DEB', 'RPM'];
return {
id: 'natsLogs',
name: i18n.translate('kbn.server.tutorials.natsLogs.nameTitle', {
defaultMessage: 'Nats logs',
}),
category: TUTORIAL_CATEGORY.LOGGING,
isBeta: true,
shortDescription: i18n.translate('kbn.server.tutorials.natsLogs.shortDescription', {
defaultMessage: 'Collect and parse logs created by Nats.',
}),
longDescription: i18n.translate('kbn.server.tutorials.natsLogs.longDescription', {
defaultMessage: 'The `nats` Filebeat module parses logs created by Nats. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-nats.html',
},
}),
euiIconType: 'logoNats',
artifacts: {
application: {
label: i18n.translate('kbn.server.tutorials.natsLogs.artifacts.application.label', {
defaultMessage: 'Discover',
}),
path: '/app/kibana#/discover'
},
dashboards: [],
exportedFields: {
documentationUrl: '{config.docs.beats.filebeat}/exported-fields-nats.html'
}
},
completionTimeMinutes: 10,
onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired, context),
elasticCloud: cloudInstructions(moduleName, platforms),
onPremElasticCloud: onPremCloudInstructions(moduleName, platforms)
};
}
4 changes: 2 additions & 2 deletions src/legacy/core_plugins/kibana/server/tutorials/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import { cloudwatchLogsSpecProvider } from './cloudwatch_logs';
import { awsMetricsSpecProvider } from './aws_metrics';
import { mssqlMetricsSpecProvider } from './mssql_metrics';
import { zeekLogsSpecProvider } from './zeek_logs';
import { natsMetricsSpecProvider } from './nats_metrics';
import { natsLogsSpecProvider } from './nats_logs';

export function registerTutorials(server) {
server.registerTutorial(systemLogsSpecProvider);
Expand Down Expand Up @@ -118,5 +118,5 @@ export function registerTutorials(server) {
server.registerTutorial(awsMetricsSpecProvider);
server.registerTutorial(mssqlMetricsSpecProvider);
server.registerTutorial(zeekLogsSpecProvider);
server.registerTutorial(natsMetricsSpecProvider);
server.registerTutorial(natsLogsSpecProvider);
}

0 comments on commit 1e6874b

Please sign in to comment.