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

[Netflow tutorial] Windows instructions #22

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
Expand Up @@ -12,6 +12,16 @@ export const LOGSTASH_INSTRUCTIONS = {
'tar xzvf logstash-{config.kibana.version}.tar.gz'
]
}
]
],
WINDOWS: [
{
title: 'Download and install the Java runtime environment',
textPre: 'Follow the installation instructions [here](https://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_jre_install.html).'
},
{
title: 'Download and install Logstash',
textPre: 'Download Logstash from [here](https://artifacts.elastic.co/downloads/logstash/logstash-{config.kibana.version}.zip) and unzip it.'
}
],
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@ export const COMMON_NETFLOW_INSTRUCTIONS = {
' var.kibana.host: "<kibana_hostname>:<kibana_port>"'
]
}
],
WINDOWS: [
{
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: {
Expand All @@ -31,6 +45,20 @@ export const COMMON_NETFLOW_INSTRUCTIONS = {
],
textPost: 'Where `<password>` is the password of the `elastic` user.'
}
],
WINDOWS: [
{
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>"'
]
}
]
}
},
Expand All @@ -46,6 +74,18 @@ export const COMMON_NETFLOW_INSTRUCTIONS = {
' Kibana dashboards and visualizations. Omit this option for subsequent runs of the module to avoid' +
' overwriting existing Kibana dashboards.'
}
],
WINDOWS: [
{
title: 'Set up and run the Netflow module',
textPre: 'In the Logstash install directory, run the following command to set up the Netflow module.',
commands: [
'bin\\logstash --modules netflow --setup',
],
textPost: 'The `--setup` option creates a `netflow-*` index pattern in Elasticsearch and imports' +
' Kibana dashboards and visualizations. Omit this option for subsequent runs of the module to avoid' +
' overwriting existing Kibana dashboards.'
}
]
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ export const ELASTIC_CLOUD_INSTRUCTIONS = {
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.ELASTIC_CLOUD.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.SETUP.OSX
]
},
{
id: INSTRUCTION_VARIANT.WINDOWS,
instructions: [
...LOGSTASH_INSTRUCTIONS.INSTALL.WINDOWS,
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.ELASTIC_CLOUD.WINDOWS,
...COMMON_NETFLOW_INSTRUCTIONS.SETUP.WINDOWS
]
}
]
}
Expand Down
8 changes: 8 additions & 0 deletions src/core_plugins/kibana/server/tutorials/netflow/on_prem.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ export const ON_PREM_INSTRUCTIONS = {
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.ON_PREM.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.SETUP.OSX
]
},
{
id: INSTRUCTION_VARIANT.WINDOWS,
instructions: [
...LOGSTASH_INSTRUCTIONS.INSTALL.WINDOWS,
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.ON_PREM.WINDOWS,
...COMMON_NETFLOW_INSTRUCTIONS.SETUP.WINDOWS
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ export const ON_PREM_ELASTIC_CLOUD_INSTRUCTIONS = {
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.ON_PREM.OSX,
...COMMON_NETFLOW_INSTRUCTIONS.SETUP.OSX
]
},
{
id: INSTRUCTION_VARIANT.WINDOWS,
instructions: [
TRYCLOUD_OPTION1,
TRYCLOUD_OPTION2,
...LOGSTASH_INSTRUCTIONS.INSTALL.WINDOWS,
...COMMON_NETFLOW_INSTRUCTIONS.CONFIG.ON_PREM.WINDOWS,
...COMMON_NETFLOW_INSTRUCTIONS.SETUP.WINDOWS
]
}
]
}
Expand Down