Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] [Logstash Netflow tutorial] Adding DEB and RPM instructions #11

Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adding Debian instructions
ycombinator committed Nov 29, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit d1329b924df8c54a21328e0f7055c753b3ae9397
17 changes: 17 additions & 0 deletions src/core_plugins/kibana/common/tutorials/logstash_instructions.js
Original file line number Diff line number Diff line change
@@ -18,6 +18,23 @@ export const LOGSTASH_INSTRUCTIONS = {
'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'
]
}
]
}
};
31 changes: 31 additions & 0 deletions src/core_plugins/kibana/server/tutorials/netflow/on_prem.js
Original file line number Diff line number Diff line change
@@ -36,6 +36,37 @@ export const ON_PREM_INSTRUCTIONS = {
]
}
]
},
{
id: INSTRUCTION_VARIANT.DEB,
instructions: [
...LOGSTASH_INSTRUCTIONS.INSTALL.DEB,
{
title: 'Set up the Netflow module',
textPre: 'Run the following command to set up the Netflow module.',
commands: [
'/usr/share/logstash/bin/logstash --modules netflow --setup-and-exit',
],
textPost: 'The `--setup-and-exit` option creates a `netflow-*` index pattern in Elasticsearch and imports' +
' Kibana dashboards and visualizations. Running `--setup-and-exit` is a one-time setup step. Omit this step' +
' for subsequent runs of the module to avoid overwriting existing Kibana dashboards.'
},
{
title: 'Configure the Netflow module',
textPre: 'Edit `/etc/logstash/logstash.yml` and add the following lines to it:',
commands: [
'modules:',
'- name: netflow',
' var.input.udp.port: {parans.netflow_var_input_udp_port}'
]
},
{
title: 'Restart the Logstash service',
commands: [
'sudo systemctl start logstash.service'
]
}
]
}
]
}