forked from packetb-old/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new filebeat tutorials (elastic#20997)
* PostgreSQL module * Added Logstash logs module * Added Elasticsearch logs module * Added IIS logs module * Traefik logs tutorial
- Loading branch information
Showing
10 changed files
with
278 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+653 KB
src/core_plugins/kibana/public/home/tutorial_resources/iis_logs/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+260 KB
...core_plugins/kibana/public/home/tutorial_resources/logstash_logs/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+335 KB
...re_plugins/kibana/public/home/tutorial_resources/postgresql_logs/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+600 KB
src/core_plugins/kibana/public/home/tutorial_resources/traefik_logs/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions
52
src/core_plugins/kibana/server/tutorials/elasticsearch_logs/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* 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, | ||
isBeta: true, | ||
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) | ||
}; | ||
} |
54 changes: 54 additions & 0 deletions
54
src/core_plugins/kibana/server/tutorials/iis_logs/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* 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 iisLogsSpecProvider() { | ||
const moduleName = 'iis'; | ||
const geoipRequired = false; | ||
const uaRequired = false; | ||
const platforms = ['WINDOWS']; | ||
return { | ||
id: 'iisLogs', | ||
name: 'IIS logs', | ||
category: TUTORIAL_CATEGORY.LOGGING, | ||
shortDescription: 'Collect and parse access and error logs created by the IIS HTTP server.', | ||
longDescription: 'The `iis` Filebeat module parses access and error logs created by the IIS HTTP server.' + | ||
' [Learn more]({config.docs.beats.filebeat}/filebeat-module-iis.html).', | ||
//euiIconType: 'logoIIS', | ||
artifacts: { | ||
dashboards: [ | ||
{ | ||
id: '4278ad30-fe16-11e7-a3b0-d13028918f9f', | ||
linkLabel: 'IIS logs dashboard', | ||
isOverview: true | ||
} | ||
], | ||
exportedFields: { | ||
documentationUrl: '{config.docs.beats.filebeat}/exported-fields-iis.html' | ||
} | ||
}, | ||
completionTimeMinutes: 10, | ||
previewImagePath: '/plugins/kibana/home/tutorial_resources/iis_logs/screenshot.png', | ||
onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), | ||
elasticCloud: cloudInstructions(moduleName, platforms), | ||
onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) | ||
}; | ||
} |
54 changes: 54 additions & 0 deletions
54
src/core_plugins/kibana/server/tutorials/logstash_logs/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* 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 logstashLogsSpecProvider() { | ||
const moduleName = 'logstash'; | ||
const geoipRequired = false; | ||
const uaRequired = false; | ||
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS']; | ||
return { | ||
id: 'logstashLogs', | ||
name: 'Logstash logs', | ||
category: TUTORIAL_CATEGORY.LOGGING, | ||
shortDescription: 'Collect and parse debug and slow logs created by Logstash itself.', | ||
longDescription: 'The `logstash` Filebeat module parses debug and slow logs created by Logstash itself.' + | ||
' [Learn more]({config.docs.beats.filebeat}/filebeat-module-logstash.html).', | ||
euiIconType: 'logoLogstash', | ||
artifacts: { | ||
dashboards: [ | ||
{ | ||
id: 'Filebeat-Logstash-Log-Dashboard', | ||
linkLabel: 'Logstash logs dashboard', | ||
isOverview: true | ||
} | ||
], | ||
exportedFields: { | ||
documentationUrl: '{config.docs.beats.filebeat}/exported-fields-logstash.html' | ||
} | ||
}, | ||
completionTimeMinutes: 10, | ||
previewImagePath: '/plugins/kibana/home/tutorial_resources/logstash_logs/screenshot.png', | ||
onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), | ||
elasticCloud: cloudInstructions(moduleName, platforms), | ||
onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) | ||
}; | ||
} |
54 changes: 54 additions & 0 deletions
54
src/core_plugins/kibana/server/tutorials/postgresql_logs/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* 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 postgresqlLogsSpecProvider() { | ||
const moduleName = 'postgresql'; | ||
const geoipRequired = false; | ||
const uaRequired = false; | ||
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS']; | ||
return { | ||
id: 'postgresqlLogs', | ||
name: 'PostgreSQL logs', | ||
category: TUTORIAL_CATEGORY.LOGGING, | ||
shortDescription: 'Collect and parse error and slow logs created by PostgreSQL.', | ||
longDescription: 'The `postgresql` Filebeat module parses error and slow logs created by PostgreSQL.' + | ||
' [Learn more]({config.docs.beats.filebeat}/filebeat-module-postgresql.html).', | ||
//euiIconType: 'logoPostgreSQL', | ||
artifacts: { | ||
dashboards: [ | ||
{ | ||
id: '158be870-87f4-11e7-ad9c-db80de0bf8d3', | ||
linkLabel: 'PostgreSQL logs dashboard', | ||
isOverview: true | ||
} | ||
], | ||
exportedFields: { | ||
documentationUrl: '{config.docs.beats.filebeat}/exported-fields-postgresql.html' | ||
} | ||
}, | ||
completionTimeMinutes: 10, | ||
previewImagePath: '/plugins/kibana/home/tutorial_resources/postgresql_logs/screenshot.png', | ||
onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), | ||
elasticCloud: cloudInstructions(moduleName, platforms), | ||
onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/core_plugins/kibana/server/tutorials/traefik_logs/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* 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 traefikLogsSpecProvider() { | ||
const moduleName = 'traefik'; | ||
const geoipRequired = false; | ||
const uaRequired = false; | ||
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS']; | ||
return { | ||
id: 'traefikLogs', | ||
name: 'Traefik logs', | ||
category: TUTORIAL_CATEGORY.LOGGING, | ||
shortDescription: 'Collect and parse access logs created by the Traefik Proxy.', | ||
longDescription: 'The `traefik` Filebeat module parses access logs created by Traefik.' + | ||
' [Learn more]({config.docs.beats.filebeat}/filebeat-module-traefik.html).', | ||
//euiIconType: 'logoTraefik', | ||
artifacts: { | ||
dashboards: [ | ||
{ | ||
id: 'Filebeat-Traefik-Dashboard', | ||
linkLabel: 'Traefik logs dashboard', | ||
isOverview: true | ||
} | ||
], | ||
exportedFields: { | ||
documentationUrl: '{config.docs.beats.filebeat}/exported-fields-traefik.html' | ||
} | ||
}, | ||
completionTimeMinutes: 10, | ||
previewImagePath: '/plugins/kibana/home/tutorial_resources/traefik_logs/screenshot.png', | ||
onPrem: onPremInstructions(moduleName, platforms, geoipRequired, uaRequired), | ||
elasticCloud: cloudInstructions(moduleName, platforms), | ||
onPremElasticCloud: onPremCloudInstructions(moduleName, platforms) | ||
}; | ||
} |