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 cloud version of the apache_logs tutorial (elastic#16)
* Add cloud version of the apache_logs tutorial * Added onprem-cloud version as well
- Loading branch information
Showing
6 changed files
with
298 additions
and
6 deletions.
There are no files selected for viewing
91 changes: 91 additions & 0 deletions
91
src/core_plugins/kibana/common/tutorials/filebeat_cloud_instructions.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,91 @@ | ||
export const FILEBEAT_CLOUD_INSTRUCTIONS = { | ||
INSTALL: { | ||
OSX: { | ||
title: 'Download and install Filebeat', | ||
textPre: 'Skip this step if Filebeat is already installed.' + | ||
' First time using Filebeat? See the [Getting Started Guide]' + | ||
'({config.docs.beats.filebeat}/filebeat-getting-started.html).', | ||
commands: [ | ||
'curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-{config.kibana.version}-darwin-x86_64.tar.gz', | ||
'tar xzvf filebeat-{config.kibana.version}-darwin-x86_64.tar.gz', | ||
'cd filebeat-{config.kibana.version}-darwin-x86_64/', | ||
] | ||
}, | ||
DEB: { | ||
title: 'Download and install Filebeat', | ||
textPre: 'Skip this step if Filebeat is already installed.' + | ||
' First time using Filebeat? See the [Getting Started Guide]' + | ||
'({config.docs.beats.filebeat}/filebeat-getting-started.html).', | ||
commands: [ | ||
'curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-{config.kibana.version}-amd64.deb', | ||
'sudo dpkg -i filebeat-{config.kibana.version}-amd64.deb' | ||
], | ||
textPost: 'Looking for the 32 bits packages? See the [Download page](https://www.elastic.co/downloads/beats/filebeat).' | ||
}, | ||
RPM: { | ||
title: 'Download and install Filebeat', | ||
textPre: 'Skip this step if Filebeat is already installed.' + | ||
' First time using Filebeat? See the [Getting Started Guide]' + | ||
'({config.docs.beats.filebeat}/filebeat-getting-started.html).', | ||
commands: [ | ||
'curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-{config.kibana.version}-x86_64.rpm', | ||
'sudo rpm -vi filebeat-{config.kibana.version}-x86_64.rpm' | ||
], | ||
textPost: 'Looking for the 32 bits packages? See the [Download page](https://www.elastic.co/downloads/beats/filebeat).' | ||
}, | ||
WINDOWS: { | ||
title: 'Download and install Filebeat', | ||
textPre: 'Skip this step if Filebeat is already installed.' + | ||
' First time using Filebeat? See the [Getting Started Guide]' + | ||
'({config.docs.beats.filebeat}/filebeat-getting-started.html).\n' + | ||
'1. Download the Filebeat Windows zip file from the [downloads](https://www.elastic.co/downloads/beats/filebeat) page.\n' + | ||
'2. Extract the contents of the zip file into `C:\\Program Files`.\n' + | ||
'3. Rename the `filebeat-{config.kibana.version}-windows` directory to `Filebeat`.\n' + | ||
'4. Open a PowerShell prompt as an Administrator (right-click the PowerShell icon and select' + | ||
' Run As Administrator). If you are running Windows XP, you may need to download and install PowerShell.\n' + | ||
'5. From the PowerShell prompt, run the following commands to install Filebeat as a Windows service.', | ||
commands: [ | ||
'PS > cd C:\\Program Files\\Filebeat', | ||
'PS C:\\Program Files\\Filebeat> .\\install-service-filebeat.ps1' | ||
] | ||
} | ||
}, | ||
CONFIG: { | ||
OSX: { | ||
title: 'Edit the configuration', | ||
textPre: 'Modify `filebeat.yml` to set the connection information for Elastic Cloud:', | ||
commands: [ | ||
'cloud.id: "{config.cloud.id}"', | ||
'cloud.auth: "elastic:<password>"' | ||
], | ||
textPost: 'Where `<password>` is the password of the `elastic` user.' | ||
}, | ||
DEB: { | ||
title: 'Edit the configuration', | ||
textPre: 'Modify `/etc/filebeat/filebeat.yml` to set the connection information for Elastic Cloud:', | ||
commands: [ | ||
'cloud.id: "{config.cloud.id}"', | ||
'cloud.auth: "elastic:<password>"' | ||
], | ||
textPost: 'Where `<password>` is the password of the `elastic` user.' | ||
}, | ||
RPM: { | ||
title: 'Edit the configuration', | ||
textPre: 'Modify `/etc/filebeat/filebeat.yml` to set the connection information for Elastic Cloud:', | ||
commands: [ | ||
'cloud.id: "{config.cloud.id}"', | ||
'cloud.auth: "elastic:<password>"' | ||
], | ||
textPost: 'Where `<password>` is the password of the `elastic` user.' | ||
}, | ||
WINDOWS: { | ||
title: 'Edit the configuration', | ||
textPre: 'Modify `C:\\Program Files\\Filebeat\\filebeat.yml` to set the connection information for Elastic Cloud:', | ||
commands: [ | ||
'cloud.id: "{config.cloud.id}"', | ||
'cloud.auth: "elastic:<password>"' | ||
], | ||
textPost: 'Where `<password>` is the password of the `elastic` user.' | ||
} | ||
} | ||
}; |
71 changes: 71 additions & 0 deletions
71
src/core_plugins/kibana/common/tutorials/filebeat_onprem_cloud_instructions.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,71 @@ | ||
export const FILEBEAT_ONPREM_CLOUD_INSTRUCTIONS = { | ||
TRYCLOUD_OPTION1: { | ||
title: 'Option 1: Try module in Elastic Cloud', | ||
textPre: 'Go to [Elastic Cloud](https://cloud.elastic.co/). Register if you ' + | ||
'don\'t have an account.\n' + | ||
' * Select **Create Cluster**, leave size slider at 4 GB RAM, and click **Create**\n' + | ||
' * Wait for the cluster plan to complete.\n' + | ||
' * Go to the new Cloud Kibana instance and follow the Kibana Home instructions.' | ||
|
||
}, | ||
TRYCLOUD_OPTION2: { | ||
title: 'Option 2: Local Kibana connected to a Cloud instance', | ||
textPre: 'If you are running this Kibana instance against a hosted Elasticsearch instance,' + | ||
' proceed with manual setup.\n' + | ||
' * In **Overview >> Endpoints** note **Elasticsearch** as `<es_url>`' | ||
}, | ||
CONFIG: { | ||
OSX: { | ||
title: 'Edit the configuration', | ||
textPre: 'Modify `filebeat.yml` to set the connection information:', | ||
commands: [ | ||
'setup.kibana:', | ||
' host: "<<kibana-host>>:5601"', | ||
'output.elasticsearch:', | ||
' hosts: ["<es_url>:9200"]', | ||
' username: "elastic"', | ||
' password: "<password>"' | ||
], | ||
textPost: 'Where `<password>` is the password of the `elastic` user.' | ||
}, | ||
DEB: { | ||
title: 'Edit the configuration', | ||
textPre: 'Modify `/etc/filebeat/filebeat.yml` to set the connection information:', | ||
commands: [ | ||
'setup.kibana:', | ||
' host: "<<kibana-host>>:5601"', | ||
'output.elasticsearch:', | ||
' hosts: ["<es_url>:9200"]', | ||
' username: "elastic"', | ||
' password: "<password>"' | ||
], | ||
textPost: 'Where `<password>` is the password of the `elastic` user.' | ||
}, | ||
RPM: { | ||
title: 'Edit the configuration', | ||
textPre: 'Modify `/etc/filebeat/filebeat.yml` to set the connection information:', | ||
commands: [ | ||
'setup.kibana:', | ||
' host: "<<kibana-host>>:5601"', | ||
'output.elasticsearch:', | ||
' hosts: ["<es_url>:9200"]', | ||
' username: "elastic"', | ||
' password: "<password>"' | ||
], | ||
textPost: 'Where `<password>` is the password of the `elastic` user.' | ||
}, | ||
WINDOWS: { | ||
title: 'Edit the configuration', | ||
textPre: 'Modify `C:\\Program Files\\Filebeat\\filebeat.yml` to set the connection information:', | ||
commands: [ | ||
'setup.kibana:', | ||
' host: "<<kibana-host>>:5601"', | ||
'output.elasticsearch:', | ||
' hosts: ["<es_url>:9200"]', | ||
' username: "elastic"', | ||
' password: "<password>"' | ||
], | ||
textPost: 'Where `<password>` is the password of the `elastic` user.' | ||
} | ||
} | ||
}; |
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
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
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
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