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

[Tutorials] Netflow: instructions for elasticCloud #19

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
@@ -1,19 +1,38 @@
export const COMMON_NETFLOW_INSTRUCTIONS = {
CONFIG: {
OSX: [
{
title: 'Edit the configuration',
textPre: 'While in the Logstash install directory, modify `config/logstash.yml` to set the'
+ ' configuration parameters for the Netflow module:',
commands: [
'modules:',
' - name: netflow',
' var.input.udp.port: <udp_port_for_receving_netflow_data>',
' var.elasticsearch.hosts: [ "<es_url>" ]',
' var.kibana.host: "<kibana_hostname>:<kibana_port>"'
]
}
]
ON_PREM: {
OSX: [
{
title: 'Edit the configuration',
textPre: 'While in the Logstash install directory, modify `config/logstash.yml` to set the'
+ ' configuration parameters for the Netflow module:',
commands: [
'modules:',
' - name: netflow',
' var.input.udp.port: <udp_port_for_receving_netflow_data>',
' var.elasticsearch.hosts: [ "<es_url>" ]',
' var.kibana.host: "<kibana_hostname>:<kibana_port>"'
]
}
]
},
ELASTIC_CLOUD: {
OSX: [
{
title: 'Edit the configuration',
textPre: 'While in the Logstash install directory, modify `config/logstash.yml` to set the'
+ ' configuration parameters for the Netflow module:',
commands: [
'modules:',
' - name: netflow',
' var.input.udp.port: <udp_port_for_receving_netflow_data>',
' cloud.id: "{config.cloud.id}"',
' cloud.auth: "elastic:<password>"'
],
textPost: 'Where `<password>` is the password of the `elastic` user.'
}
]
}
},
SETUP: {
OSX: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { INSTRUCTION_VARIANT } from '../../../common/tutorials/instruction_variant';
import { LOGSTASH_INSTRUCTIONS } from '../../../common/tutorials/logstash_instructions';
import { COMMON_NETFLOW_INSTRUCTIONS } from './common_instructions';

// TODO: compare with onPremElasticCloud and onPrem scenarios and extract out common bits
export const ELASTIC_CLOUD_INSTRUCTIONS = {
Expand All @@ -9,9 +11,9 @@ export const ELASTIC_CLOUD_INSTRUCTIONS = {
{
id: INSTRUCTION_VARIANT.OSX,
instructions: [
{
title: 'elastiCloud instructions - TBD',
}
...LOGSTASH_INSTRUCTIONS.INSTALL.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.ELASTIC_CLOUD.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.SETUP.OSX
]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const ON_PREM_INSTRUCTIONS = {
id: INSTRUCTION_VARIANT.OSX,
instructions: [
...LOGSTASH_INSTRUCTIONS.INSTALL.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.ON_PREM.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.SETUP.OSX
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const ON_PREM_ELASTIC_CLOUD_INSTRUCTIONS = {
TRYCLOUD_OPTION1,
TRYCLOUD_OPTION2,
...LOGSTASH_INSTRUCTIONS.INSTALL.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.ON_PREM.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.SETUP.OSX
]
}
Expand Down