[Netflow tutorial] Fixing instructions (#16300)

* Fixing instructions

* Language cleanup fixes
This commit is contained in:
Shaunak Kashyap 2018-01-25 15:10:14 -08:00
parent a2febf7d2b
commit 3a18bc64f9
2 changed files with 57 additions and 16 deletions

View file

@ -9,10 +9,41 @@ export const COMMON_NETFLOW_INSTRUCTIONS = {
commands: [
'modules:',
' - name: netflow',
' var.input.udp.port: <udp_port_for_receving_netflow_data>',
' var.input.udp.port: <udp_port>',
],
textPost: 'Where `<udp_port>` is the UDP port on which Logstash will receive Netflow data.'
}
],
WINDOWS: [
{
title: 'Edit the configuration',
textPre: 'Modify `config\\logstash.yml` to set the configuration parameters:',
commands: [
'modules:',
' - name: netflow',
' var.input.udp.port: <udp_port>',
],
textPost: 'Where `<udp_port>` is the UDP port on which Logstash will receive Netflow data.'
}
]
},
ON_PREM_ELASTIC_CLOUD: {
OSX: [
{
title: 'Edit the configuration',
textPre: 'Modify `config/logstash.yml` to set the configuration parameters:',
commands: [
'modules:',
' - name: netflow',
' var.input.udp.port: <udp_port>',
' var.elasticsearch.hosts: [ "<es_url>" ]',
' var.kibana.host: "<kibana_hostname>:<kibana_port>"'
]
' var.elasticsearch.username: elastic',
' var.elasticsearch.password: <password>',
],
textPost: 'Where `<udp_port>` is the UDP port on which Logstash will receive Netflow data, '
+ '`<es_url>` is the URL of Elasticsearch running on Elastic Cloud, and '
+ '`<password>` is the password of the `elastic` user.'
}
],
WINDOWS: [
@ -23,10 +54,15 @@ export const COMMON_NETFLOW_INSTRUCTIONS = {
commands: [
'modules:',
' - name: netflow',
' var.input.udp.port: <udp_port_for_receving_netflow_data>',
' var.input.udp.port: <udp_port>',
' var.elasticsearch.hosts: [ "<es_url>" ]',
' var.kibana.host: "<kibana_hostname>:<kibana_port>"'
]
' var.elasticsearch.username: elastic',
' var.elasticsearch.password: <password>',
],
textPost: 'Where `<udp_port>` is the UDP port on which Logstash will receive Netflow data, '
+ '`<es_url>` is the URL of Elasticsearch running on Elastic Cloud, and '
+ '`<password>` is the password of the `elastic` user.'
}
]
},
@ -37,13 +73,15 @@ export const COMMON_NETFLOW_INSTRUCTIONS = {
textPre: 'In the Logstash installation directory, modify `config/logstash.yml` to set the'
+ ' configuration parameters for the Netflow module.',
commands: [
'cloud.id: "{config.cloud.id}"',
'cloud.auth: "elastic:<password>"',
' ',
'modules:',
' - name: netflow',
' var.input.udp.port: <udp_port_for_receving_netflow_data>',
' cloud.id: "{config.cloud.id}"',
' cloud.auth: "elastic:<password>"'
' var.input.udp.port: <udp_port>',
],
textPost: 'Where `<password>` is the password of the `elastic` user.'
textPost: 'Where `<udp_port>` is the UDP port on which Logstash will receive Netflow data and '
+ '`<password>` is the password of the `elastic` user.'
}
],
WINDOWS: [
@ -52,12 +90,15 @@ export const COMMON_NETFLOW_INSTRUCTIONS = {
textPre: 'While in the Logstash install directory, modify `config\\logstash.yml` to set the'
+ ' configuration parameters for the Netflow module:',
commands: [
'cloud.id: "{config.cloud.id}"',
'cloud.auth: "elastic:<password>"',
' ',
'modules:',
' - name: netflow',
' var.input.udp.port: <udp_port_for_receving_netflow_data>',
' cloud.id: "{config.cloud.id}"',
' cloud.auth: "elastic:<password>"'
]
' var.input.udp.port: <udp_port>',
],
textPost: 'Where `<udp_port>` is the UDP port on which Logstash will receive Netflow data and '
+ '`<password>` is the password of the `elastic` user.'
}
]
}

View file

@ -18,7 +18,7 @@ export const ON_PREM_ELASTIC_CLOUD_INSTRUCTIONS = {
TRYCLOUD_OPTION1,
TRYCLOUD_OPTION2,
...LOGSTASH_INSTRUCTIONS.INSTALL.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.ON_PREM.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.ON_PREM_ELASTIC_CLOUD.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.SETUP.OSX
]
},
@ -28,7 +28,7 @@ export const ON_PREM_ELASTIC_CLOUD_INSTRUCTIONS = {
TRYCLOUD_OPTION1,
TRYCLOUD_OPTION2,
...LOGSTASH_INSTRUCTIONS.INSTALL.WINDOWS,
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.ON_PREM.WINDOWS,
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.ON_PREM_ELASTIC_CLOUD.WINDOWS,
...COMMON_NETFLOW_INSTRUCTIONS.SETUP.WINDOWS
]
}