Skip to content

Commit

Permalink
Implementing Elastic Cloud tutorial for Netflow module (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator authored and nreese committed Jan 8, 2018
1 parent 1699c21 commit 8b0b5d9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 19 deletions.
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

0 comments on commit 8b0b5d9

Please sign in to comment.