Skip to content

Commit

Permalink
Added Elasticsearch logs module
Browse files Browse the repository at this point in the history
  • Loading branch information
tsg committed Jul 20, 2018
1 parent dfbd04a commit 392d6be
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* 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 { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions';

export function elasticsearchLogsSpecProvider() {
const moduleName = 'elasticsearch';
const geoipRequired = false;
const uaRequired = false;
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
id: 'elasticsearchLogs',
name: 'Elasticsearch logs',
category: TUTORIAL_CATEGORY.LOGGING,
shortDescription: 'Collect and parse logs created by Elasticsearch.',
longDescription: 'The `elasticsearch` Filebeat module parses logs created by Elasticsearch.' +
' [Learn more]({config.docs.beats.filebeat}/filebeat-module-elasticsearch.html).',
euiIconType: 'logoElasticsearch',
artifacts: {
application: {
label: 'Discover',
path: '/app/kibana#/discover'
},
dashboards: [],
exportedFields: {
documentationUrl: '{config.docs.beats.filebeat}/exported-fields-elasticsearch.html'
}
},
completionTimeMinutes: 10,
onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired),
elasticCloud: cloudInstructions(moduleName, platforms),
onPremElasticCloud: onPremCloudInstructions(moduleName, platforms)
};
}
2 changes: 2 additions & 0 deletions src/core_plugins/kibana/server/tutorials/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { systemLogsSpecProvider } from './system_logs';
import { systemMetricsSpecProvider } from './system_metrics';
import { apacheLogsSpecProvider } from './apache_logs';
import { apacheMetricsSpecProvider } from './apache_metrics';
import { elasticsearchLogsSpecProvider } from './elasticsearch_logs';
import { kafkaLogsSpecProvider } from './kafka_logs';
import { logstashLogsSpecProvider } from './logstash_logs';
import { nginxLogsSpecProvider } from './nginx_logs';
Expand Down Expand Up @@ -58,6 +59,7 @@ export function registerTutorials(server) {
server.registerTutorial(systemMetricsSpecProvider);
server.registerTutorial(apacheLogsSpecProvider);
server.registerTutorial(apacheMetricsSpecProvider);
server.registerTutorial(elasticsearchLogsSpecProvider);
server.registerTutorial(kafkaLogsSpecProvider);
server.registerTutorial(logstashLogsSpecProvider);
server.registerTutorial(nginxLogsSpecProvider);
Expand Down

0 comments on commit 392d6be

Please sign in to comment.