Skip to content

Commit

Permalink
Starting to add Deb instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Nov 17, 2017
1 parent 2fdb923 commit 18194d4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 10 deletions.
46 changes: 37 additions & 9 deletions src/core_plugins/kibana/common/tutorials/logstash_instructions.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,41 @@
const SKIP_INSTALL_SENTENCE = '_Skip this step if Logstash is already installed._';
const FIRST_TIME_SENTENCE = '_First time using Logstash? See the [Getting Started Guide]({config.docs.logstash}/'
+ 'getting-started-with-logstash.html)._';

export const LOGSTASH_INSTRUCTIONS = {
INSTALL: {
OSX: {
title: 'Download and install Logstash',
textPre: 'Skip this step if Logstash is already installed. First time using Logstash? See the ' +
'[Getting Started Guide]({config.docs.logstash}/getting-started-with-logstash.html).',
commands: [
'curl -L -O https://artifacts.elastic.co/downloads/logstash/logstash-{config.kibana.version}.tar.gz',
'tar xzvf logstash-{config.kibana.version}.tar.gz'
]
}
OSX: [
{
title: 'Download and install the Java runtime environment',
textPre: `Follow the installation instructions [here](https://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jre.html). ` +
`${SKIP_INSTALL_SENTENCE} ${FIRST_TIME_SENTENCE}`,
commands: []
},
{
title: 'Download and install Logstash',
textPre: SKIP_INSTALL_SENTENCE,
commands: [
'curl -L -O https://artifacts.elastic.co/downloads/logstash/logstash-{config.kibana.version}.tar.gz',
'tar xzvf logstash-{config.kibana.version}.tar.gz'
]
}
],
DEB: [
{
title: 'Download and install the Java runtime environment',
textPre: `${SKIP_INSTALL_SENTENCE} ${FIRST_TIME_SENTENCE}`,
commands: [
'sudo apt-get install default-jre'
]
},
{
title: 'Download and install Logstash',
textPre: SKIP_INSTALL_SENTENCE,
commands: [
'curl -L -O https://artifacts.elastic.co/downloads/logstash/logstash-{config.kibana.version}.deb',
'sudo apt install ./logstash-{config.kibana.version}.deb'
]
}
]
}
};
2 changes: 1 addition & 1 deletion src/core_plugins/kibana/server/tutorials/netflow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function netflowSpecProvider() {
{
id: INSTRUCTION_VARIANT.OSX,
instructions: [
LOGSTASH_INSTRUCTIONS.INSTALL.OSX,
...LOGSTASH_INSTRUCTIONS.INSTALL.OSX,
{
title: 'Set up and run the Netflow module',
textPre: 'In the Logstash install directory, run the following command to set up and run the Netflow module.',
Expand Down

0 comments on commit 18194d4

Please sign in to comment.