Elastic Stack Reference Guide
Elastic Stack Reference Guide
Complexity
e [email protected]
Elastic Stack
Reference Guide
1|Page
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
1 CONTENTS
1 Contents .......................................................................................................................................... 2
2 Introduction ..................................................................................................................................... 4
Audience and Purpose .................................................................................................................... 5
Documents, Knowledge Base, and Technical Support.................................................................... 6
Features of Elasticsearch [1]............................................................................................................. 6
Important Considerations ............................................................................................................... 6
Digital IP Appliance Design Process ................................................................................................ 7
Appliance Optimizer Utility AOU ...................................................................................................... 7
Infrastructure Setup ........................................................................................................................ 8
Hardware Requirements ..................................................................................................................... 8
Software Requirements: ..................................................................................................................... 8+
Building Blocks: ................................................................................................................................. 8
Access and Default Credentials ....................................................................................................... 9
3 Base Product Deployment ............................................................................................................... 9
Preinstallation Requirements ......................................................................................................... 9
Hardware Requirements: .................................................................................................................... 9
Software requirements ...................................................................................................................... 10
Installation Components ............................................................................................................... 10
[16]
4 Configure the Appliance ........................................................................................................... 38
Important Elasticsearch configuration [17]..................................................................................... 39
5 Testing the Appliance ................................................................................................................... 41
Search ............................................................................................................................................... 41
Navigation Menu .............................................................................................................................. 42
Elastic Security app pages ................................................................................................................ 42
Dashboards ................................................................................................................................... 43
Alerts ................................................................................................................................................ 44
Detections and alerts ......................................................................................................................... 45
2|Page
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Findings ............................................................................................................................................ 46
Timelines .......................................................................................................................................... 47
Cases ................................................................................................................................................. 52
Explore.............................................................................................................................................. 53
Hosts: ................................................................................................................................................ 54
Network ............................................................................................................................................ 55
Users: ................................................................................................................................................ 56
Intelligence ....................................................................................................................................... 57
Manage ............................................................................................................................................. 61
6 Addendum ..................................................................................................................................... 62
Kibana Configuration ....................................................................................................................... 62
Elasticsearch-ELK 1Configuration ................................................................................................... 68
Elasticsearch-ELK 2 Configuration .................................................................................................. 71
Elasticsearch-ELK 3 Configuration .................................................................................................. 75
7 Copyright and Licensing ............................................................................................................... 79
8 References ..................................................................................................................................... 79
3|Page
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
2 INTRODUCTION
Hyperscalers identifies the Enterprise requirement as well as IT administrators to have the data of any format from
various sources to search, analyse and visuals in real time. Elastic stack along with core products helps to achieve
this in a single place.
The Elastic Stack, often known as the ELK Stack, is utilized in a wide range of use cases, including debugging faults
in application metrics, looking into security concerns in logs, and powering search boxes on websites and apps. The
Elastic Stack, which consists of Elasticsearch, Kibana, Beats, and Logstash, offers a flexible and adaptable platform
for search and analysis for various types of data.
This can be very useful for companies working with large datasets, any complex search application requirements
along with infrastructure metrics and container monitoring, logging and application performance monitoring,
visualization and analysis of geographical data as well as business and security analytics.
[1]
Hyperscalers is the world's first open supply chain Original Equipment Manufacturer- OEM, solving Information
Technology challenges through standardization of best practices and hyperscale inspired practices and efficiencies.
Hyperscalers offers choice across two open hardware architectures:
• Hyperscale - high efficiency open compute equipment as used by macro service providers
• Tier 1 Original – conventional equipment as per established Tier 1 OEM suppliers.
Each architecture is complete with network, compute, storage, and converged GP GPU infrastructure elements, and
is open / free from vendor lock-in.
Hyperscalers’ appliance solutions are packaged complete with hardware, software and pre-built (customisable)
configurations. These were all pre-engineered using an in-house IP Appliance Design Process and validated in
4|Page
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
partnership with associated major software manufacturers. Many can be “test-driven” using Hyperscalers Lab as a
Service (LaaS). Hyperscalers appliance solutions are ideally suited to IaaS PaaS and SaaS providers looking to
implement their services from anywhere.
The Elastic stack appliance by Hyperscalers is a complete package including the high-performance CPU, memory
and network resources coupled with ELK stack core products to provide corporate search, observability, and security
solutions that can be deployed anywhere and are based on a single, adaptable technology stack.
In this reference guide, we are trying to provide security to the company data by monitoring their logs, application
and analysing their geographical data. Elasticsearch allows to store, search and analyse huge volumes of data quickly
and in near real time and give back answers in milliseconds. It gives quick search responses by searching an index.
So highly recommended for those companies, who are looking for data protection of their companies.
5|Page
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
For technical queries regarding this document and for managing virtualized, mobile, and cloud technologies, you
can contact Hyperscalers technical support at [email protected].
Additional reference to the Elasticsearch, Kibana and security dashboard can be found in Hyperscalers lab as a
service (LaaS) page and reference architecture section link – https://elastic.hyperscale2.com
Readers are recommended to have a prior knowledge and expertise with Kibana, Logstash, beats, Linux
programming to better understand the following documentation.
[1]
Features of Elasticsearch
The Elastic Stack comes with+ numerous tools (some originally bundled as X-Pack) to let you ingest, analyse, search,
and display all forms of data at scale. These features range from enterprise-grade security and developer-friendly
APIs to machine learning and graph analytics. The core security features Elastic stack integrates all the security
features to the platform are listed below.
Important Considerations
The following documentation gives a detailed step by step deployment of Elastic Stack and the products that are
installed offers a flexible and adaptable platform for search and analysis for various types of data. The Elasticsearch
architecture is specific and designed to support the retrieval of documents, which helps handle complex data and
queries. To track information, Elasticsearch uses keys prepended with an underscore, which represents metadata.
6|Page
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
The Elasticsearch architecture is built for scalability and flexibility. The core components are Elasticsearch clusters,
nodes, shards, and analyzers. Hyperscalers recommends the below important considerations before proceeding to
the deployment phase.
a. ElasticStack required minimum three nodes to deployed, on each one will be master, and one be data. These
nodes can be installed in both bare metal and can be virtualized and on the top of it, we install Elastic Stack
products like Kibana, logstash, beats and Elastic Search.
b. Keep the hardware configuration consistent across all the nodes to ensure replication and high availability.
c. The Elastic stack requires minimum of at least 1 installation of Kibana applications for data visualization
and exploration tool for log and time series analytics, applications monitoring and operational intelligence.
d. Elastic search required minimum of 2 or more cores intel processor with 32 GB memory and 3 hard disks
on each node. It supports Linux and MacOS, windows, Debian, Ubuntu and is suitable for Red Hat, Centos
SLES, OpenSuSE and other RPM based systems.
7|Page
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Infrastructure Setup
To demonstrate a scalable and resilient Elastic Stack, we have used 3 nodes all as master and data.
Hardware Requirements
The hardware configuration for the build is listed below:
CPU: 2X INTEL(R) XEON(R) SILVER CPU: 2X INTEL(R) XEON(R) SILVER CPU: 2X INTEL(R) XEON(R) SILVER
4316 CPU @ 2.30GHZ 4316 CPU @ 2.30GHZ 4316 CPU @ 2.30GHZ
SSD OS DISK: 2X 250G M.2 SSD OS DISK: 2X 250G M.2 SSD OS DISK: 2X 250G M.2
NVME DATA DISK: 4X 7.68TB NVME DATA DISK: 4X 7.68TB NVME DATA DISK: 4X 7.68TB
MEMORY: 16X 32 GB 3200MT/S MEMORY: 16X 32 GB 3200MT/S MEMORY: 16X 32 GB 3200MT/S
Software Requirements:
Application: Elastic Stack (8.6)
Building Blocks:
S5Z | T43Z-2U
The ELK1 node is QuantaPlex T43Z-2U 20S5ZCU0050 with high performance multi node server and has high
density server optimized for extreme compute performance and space efficiency. Featuring all-NVMe with high
rd
memory footprint and additional expansibility. Supports top-bin 3 Generation Intel® Xeon® Scalable processors
in compact chassis. Two (2) CPU Sockets for up to 80 cores using Intel® Xeon® Silver 4316 Processor 40cores
each. 62.3 Gib of Memory slots of 32 GB each. OS type 64 bit with 16 Front Storage drive bays, 4 for each node.
8|Page
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Elastic Cloud on Kubernetes (ECK) supports the deployment of the ELK stack on Kubernetes (including
Elasticsearch, Logstash, Kibana and Beats). ECK takes advantage of Kubernetes orchestration capabilities.
ECK allows you to streamline critical operations, including managing and scaling clusters and storage,
monitoring multiple clusters, securing clusters and using rolling upgrades for safe configuration. To distribute
Elasticsearch resources across availability zones in the cloud, you can enable zone awareness.
You can also set up hot-warm-cold architectures for data storage. ECK lets you tier your data to meet different
needs and conserve costs. Hot data is frequently accessed, warm data is infrequently accessed, and cold data is
archival or backup storage—you can use lower-cost archive cloud storage tiers for warm and cold data.
Preinstallation Requirements
The Preinstallation Requirements are listed below:
Hardware Requirements:
Before installation of the Elastic stack, you need to setup hardware, the minimum requirements of the hardware
chassis are listed below.
9|Page
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Software requirements
To install Elastic search:
Installation Components
The installation components are listed below:
1. Production level software product requirements
When installing the Elastic Stack, you must use the same version across the entire stack. For example, if you are
using Elasticsearch 8.5.2, you install Beats 8.5.2, APM Server 8.5.2, Elasticsearch Hadoop 8.5.2, Kibana 8.5.2, and
Logstash 8.5.2.
Installation Order
Install the Elastic Stacks products you want to use in the following order:
a. Elasticsearch
b. Kibana
c. Logstash
d. Beats
e. APM
f. Elasticsearch Hadoop
Step 3: For the “JAVA_HOME” (Environment Variable) type command as shown below, in “Terminal” using
your installation path…(Note: the default path is as shown, but if you have to install OpenJDK at another
location then set that path.)
Step 4: For “PATH” (Environment Value) type command as shown below, in “Terminal” using your
installation path…Note: the default path is as shown, but if you have to install OpenJDK at another location
then set that path.)
10 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Note: We are done setting up the environment in Java for Linux OS.
Note: Now to check whether the installation is done correctly, type java -version in the Terminal. You will see
that java is running on your machine.
• Notepad/gedit : They are simple text-editors for writing java programs. Notepad is available on
Windows and gedit is available on Linux.
• Eclipse IDE : It is the most widely used IDE(Integrated Development Environment) for
developing software in java. You can download Eclipse.
Debian, Ubuntu, and Deb The deb package is suitable for Debian, Ubuntu, and other Debian-based systems.
other Debian-based Debian packages may be downloaded from the Elasticsearch website or from our
systems Debian repository.
https://www.elastic.co/guide/en/elasticsearch/reference/8.6/deb.html
$wget
https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.3.1/elasticsea
rch-2.3.1.deb
11 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
...
network.host: 127.0.0.1
...
a. Kibana [4]
Starting with version 6.0.0, Kibana only supports 64 bit operating systems. Kibana is provided in the following
package formats:
deb The deb package is suitable for Debian, Ubuntu, and other Debian-based systems. Debian
packages may be downloaded from the Elastic website or from our Debian repository.
https://www.elastic.co/guide/en/kibana/8.6/deb.html
You may need to install the apt-transport-https package on Debian before proceeding:
12 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
The Debian package for Kibana v8.6.1 can be downloaded from the website and installed as follows:
wget https://artifacts.elastic.co/downloads/kibana/kibana-8.6.1-amd64.deb
When you start Elasticsearch for the first time, the following security configuration occurs automatically:
• Authentication and authorization are enabled, and a password is generated for the elastic built-in
superuser.
• Certificates and keys for TLS are generated for the transport and HTTP layer, and TLS is enabled and
configured with these keys and certificates.
The password and certificate and keys are output to your terminal. You can then generate an enrollment token for
Kibana with the elasticsearch-create-enrollment-token tool:
bin/elasticsearch-create-enrollment-token -s kibana
Start Kibana and enter the enrollment token to securely connect Kibana with Elasticsearch.
To configure Kibana to start automatically when the system starts, run the following commands:
These commands provide no feedback as to whether Kibana was started successfully or not. Log information can
be accessed via journalctl -u kibana.service..
13 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
[5]
b. Logstash
➢ APT
#You may need to install the apt-transport-https package on Debian before proceeding:
Run sudo apt-get update and the repository is ready for use. You can install it with:
[6]
c. Beats
• Auditbeat
• Filebeat
• Functionbeat
• Heartbeat
• Metricbeat
• Packetbeat
• Winlogbeat
[7]
➢ Auditbeat quick start: installation and configuration
This guide describes how to get started quickly with audit data collection. You’ll learn how to:
You need Elasticsearch for storing and searching your data, and Kibana for visualizing and managing it.
14 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
# DEB
1. curl -L -O https://artifacts.elastic.co/downloads/beats/auditbeat/auditbeat-8.6.0-amd64.deb
2. sudo dpkg -i auditbeat-8.6.0-amd64.deb
Connections to Elasticsearch and Kibana are required to set up Auditbeat. Set the connection information
in auditbeat.yml.
Self-Managed
i. Set the host and port where Auditbeat can find the Elasticsearch installation, and set the username and
password of a user who is authorized to set up Auditbeat.
For example:
a) output.elasticsearch:
b) hosts: ["https://myEShost:9200"]
c) username: "auditbeat_internal"
d) password: "YOUR_PASSWORD"
e) ssl:
f) enabled: true
g) ca_trusted_fingerprint:
"b9a10bbe64ee9826abeda6546fc988c8bf798b41957c33d05db736716513dc9c"
ii. If you plan to use our pre-built Kibana dashboards, configure the Kibana endpoint. Skip this step if Kibana is
running on the same host as Elasticsearch.
1. setup.kibana:
2. host: "mykibanahost:5601"
3. username: "my_kibana_user"
4. password: "{pwd}"
Auditbeat uses modules to collect audit information. By default, Auditbeat uses a configuration that’s tailored to the
operating system where Auditbeat is running. To use a different configuration, change the module settings in
auditbeat.yml.
The following example shows the file_integrity module configured to generate events whenever a file in one of the
specified paths changes on disk:
-auditbeat.modules:
- module: file_integrity
paths:
- /bin
- /usr/bin
- /sbin
15 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
- /usr/sbin
- /etc
Auditbeat comes with predefined assets for parsing, indexing, and visualizing your data. To load these assets:
DEB
auditbeat setup -e
-e is optional and sends output to standard error instead of the configured log output.
Before starting Auditbeat, modify the user credentials in auditbeat.yml and specify a user who is authorized to
publish events.
To make it easier for you to start auditing the activities of users and processes on your system, Auditbeat comes
with pre-built Kibana dashboards and UIs for visualizing your data.
1. Launch Kibana:
2. In the side navigation, click Discover. To see Auditbeat data, make sure the predefined auditbeat-* index
pattern is selected.
3. In the side navigation, click Dashboard, then select the dashboard that you want to open.
16 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
[8]
➢ FileBeat
This guide describes how to get started quickly with log collection.
To download and install Filebeat, use the commands that work with your system:
Self- • Set the host and port where Filebeat can find the Elasticsearch installation, and set the username and
Managed password of a user who is authorized to set up Filebeat. For example:
output.elasticsearch:
hosts: ["https://myEShost:9200"]
username: "filebeat_internal"
password: "YOUR_PASSWORD"
ssl:
enabled: true
ca_trusted_fingerprint: "b9a10bbe64ee9826abeda6546fc988c8bf798b41957c33d05db736716513dc9c"
• If you plan to use our pre-built Kibana dashboards, configure the Kibana endpoint. Skip this step if
Kibana is running on the same host as Elasticsearch.
setup.kibana:
host: "mykibanahost:5601"
username: "my_kibana_user"
password: "{pwd}"
17 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
2. From the installation directory, enable one or more modules. For example, the following command
enables the nginx module config:
3. In the module config under modules.d, change the module settings to match your environment. You must
enable at least one fileset in the module. Filesets are disabled by default.
For example, log locations are set based on the OS. If your logs aren’t in default locations, set
the paths variable:
- module: nginx
access:
enabled: true
var.paths: ["/var/log/nginx/access.log*"]
Filebeat comes with predefined assets for parsing, indexing, and visualizing your data. To load these assets:
1. Launch Kibana
18 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
2. In the side navigation, click Discover. To see filebeat data, make sure the predefined filebeat-* index
pattern is selected.
3. In the side navigation, click Dashboard, then select the dashboard that you want to open.
[9]
➢ Function Beat
The Functionbeat distribution contains the command line tools, configuration file, and binary code required to
run Functionbeat in your serverless environment. To download and extract the package, use the commands
that work with your system.
Connections to Elasticsearch and Kibana are required to set up Functionbeat. Set the connection information
in functionbeat.yml.
Self- • Set the host and port where Functionbeat can find the Elasticsearch installation, and set the
managed username and password of a user who is authorized to set up Functionbeat. For example:
• output.elasticsearch:
• hosts: ["https://myEShost:9200"]
• username: "functionbeat_internal"
• password: "YOUR_PASSWORD"
• ssl:
• enabled: true
• ca_trusted_fingerprint:
"b9a10bbe64ee9826abeda6546fc988c8bf798b41957c33d05db736716513dc9c"
If you plan to use our pre-built Kibana dashboards, configure the Kibana endpoint. Skip this
step if Kibana is running on the same host as Elasticsearch.
• setup.kibana:
• host: "mykibanahost:5601"
• username: "my_kibana_user"
• password: "{pwd}"
To configure Function beat, edit the configuration file. The default configuration file is called functionbeat.yml.
19 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Functionbeat comes with predefined assets for parsing, indexing, and visualizing your data. To load these
assets:
• install Heartbeat
• specify the protocols to monitor
• send uptime data to Elasticsearch
• visualize the uptime data in Kibana
You need Elasticsearch for storing and searching your data, and Kibana for visualizing and managing it.
Self-managed
To install and run Elasticsearch and Kibana, see Installing the Elastic Stack.
Unlike most Beats, which you install on edge nodes, you typically install Heartbeat as part of a monitoring service
that runs on a separate machine and possibly even outside of the network where the services that you want to
monitor are running.
To download and install Heartbeat, use the commands that work with your system:
DEB
curl -L -O https://artifacts.elastic.co/downloads/beats/heartbeat/heartbeat-8.6.1-amd64.deb
Connections to Elasticsearch and Kibana are required to set up Heartbeat. Set the connection information in
heartbeat.yml. To locate this configuration file, see Directory layout.
Service Self-managed
a. Set the host and port where Heartbeat can find the Elasticsearch installation and set the username and
password of a user who is authorized to set up Heartbeat.
20 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
For example:
output.elasticsearch:
hosts: ["https://myEShost:9200"]
username: "heartbeat_internal"
password: "YOUR_PASSWORD"
ssl:
enabled: true
ca_trusted_fingerprint: "b9a10bbe64ee9826abeda6546fc988c8bf798b41957c33d05db736716513dc9c"
b. If you plan to use our pre-built Kibana dashboards, configure the Kibana endpoint. Skip this step if Kibana is
running on the same host as Elasticsearch.
setup.kibana:
host: "mykibanahost:5601"
username: "my_kibana_user"
password: "{pwd}"
Heartbeat provides monitors to check the status of hosts at set intervals. Heartbeat currently provides monitors for
ICMP, TCP, and HTTP (see Heartbeat overview for more about these monitors).
You configure each monitor individually. In heartbeat.yml, specify the list of monitors that you want to enable.
Each item in the list begins with a dash (-).
The following example configures Heartbeat to use three monitors: an icmp monitor, a tcp monitor, and an http
monitor.
heartbeat.monitors:
- type: icmp
schedule: '*/5 * * * * * *'
hosts: ["myhost"]
id: my-icmp-service
name: My ICMP Service
- type: tcp
schedule: '@every 5s'
hosts: ["myhost:12345"]
mode: any
21 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
id: my-tcp-service
- type: http
schedule: '@every 5s'
urls: ["http://example.net"]
service.name: apm-service-name
id: my-http-service
name: My HTTP Service
• The icmp monitor is scheduled to run exactly every 5 seconds (10:00:00, 10:00:05, and so on). The schedule
option uses a cron-like syntax based on this cronexpr implementation.
• The tcp monitor is set to run every 5 seconds from the time when Heartbeat was started. Heartbeat adds the
@every keyword to the syntax provided by the cronexpr package.
• The mode specifies whether to ping one IP (any) or all resolvable IPs
• The service.name field can be used to integrate heartbeat with elastic APM via the Uptime UI.
Heartbeat can be deployed in multiple locations so that you can detect differences in availability and response
times across those locations. Configure the Heartbeat location to allow Kibana to display location-specific
information on Uptime maps and perform Uptime anomaly detection based on location.
To configure the location of a Heartbeat instance, modify the add_observer_metadata processor in heartbeat.yml.
The following example specifies the geo.name of the add_observer_metadata processor as us-east-1a:
22 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Heartbeat comes with predefined assets for parsing, indexing, and visualizing your data. To load these assets:
-e is optional and sends output to standard error instead of the configured log output.
Heartbeat is now ready to check the status of your services and send events to your defined output.
Heartbeat comes with pre-built Kibana dashboards and UIs for visualizing the status of your services. The
dashboards are available in the uptime-contrib GitHub repository.
a. Launch Kibana:
Self-managed
Point your browser to http://localhost:5601, replacing localhost with the name of the Kibana host.
b. In the side navigation, click Discover. To see Heartbeat data, make sure the predefined heartbeat-* index
pattern is selected.
c. In the side navigation, click Dashboard, then select the dashboard that you want to open.
[11]
d. Elastic Search Metricsbeat
Metricbeat helps you monitor your servers and the services they host by collecting metrics from the operating
system and services.
23 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
This guide describes how to get started quickly with metrics collection. You’ll learn how to:
Install Metricbeat as close as possible to the service you want to monitor. For example, if you have four servers
with MySQL running, it’s recommended that you run Metricbeat on each server. This allows Metricbeat to access
your service from localhost and does not cause any additional network traffic or prevent Metricbeat from
collecting metrics when there are network problems. Metrics from multiple Metricbeat instances will be combined
on the Elasticsearch server. To download and install Metricbeat, use the commands that work with your system:
DEB
1. curl -L -O https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-8.5.2-amd64.deb
2. sudo dpkg -i metricbeat-8.5.2-amd64.deb
Self Managed
a. Set the host and port where Metricbeat can find the Elasticsearch installation, and set the
username and password of a user who is authorized to set up Metricbeat. For example:
output.elasticsearch:
hosts: ["https://myEShost:9200"]
username: "metricbeat_internal"
password: "YOUR_PASSWORD"
ssl:
enabled: true
ca_trusted_fingerprint:
"b9a10bbe64ee9826abeda6546fc988c8bf798b41957c33d05db736716513dc9c"
b. If you plan to use our pre-built Kibana dashboards, configure the Kibana endpoint. Skip this
step if Kibana is running on the same host as Elasticsearch.
setup.kibana:
host: "mykibanahost:5601"
username: "my_kibana_user"
password: "{pwd}"
24 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Metricbeat uses modules to collect metrics. Each module defines the basic logic for collecting data from a specific
service, such as Redis or MySQL. A module consists of metricsets that fetch and structure the data.
2. From the installation directory, enable one or more modules. If you accept the default configuration without
enabling additional modules, Metricbeat collects system metrics only. The following command enables
the nginx config in the modules.d directory:
3. In the module config under modules.d, change the module settings to match your environment.
• Configure Metricbeat
• Config file format
• Metricbeat.reference.yml: This reference configuration file shows all non-deprecated options.
You’ll find it in the same location as metricbeat.yml.
Step 4: Set up assets
Metricbeat comes with predefined assets for parsing, indexing, and visualizing your data. To load these assets:
-e is optional and sends output to standard error instead of the configured log output.
Metricbeat comes with pre-built Kibana dashboards and UIs for visualizing log data. You loaded the dashboards
earlier when you ran the setup command.
25 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
1. Launch Kibana:
• Self-Managed
a. Point your browser to http://localhost:5601, replace localhost with the name of the kibana
host.
2. In the side navigation, click Discover. To see Metricbeat data, make sure the
predefined metricbeat-* index pattern is selected.
3. In the side navigation, click Dashboard, then select the dashboard that you want to open.
[12]
Packetbeat
The best way to understand the value of a network packet analytics system like Packetbeat is to try it on your own
traffic.
This guide describes how to get started quickly with network packets analytics. You’ll learn how to:
• On most platforms, Packetbeat requires the libpcap packet capture library. Depending on your OS, you
might need to install it:
You can install Packetbeat on dedicated servers, getting the traffic from mirror ports or tap devices, or you can
install it on your existing application servers.
To download and install Packetbeat, use the commands that work with your system:
1. curl -L -O https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-8.5.2-
DEB
amd64.deb
2. sudo dpkg -i packetbeat-8.5.2-amd64.deb
Connections to Elasticsearch and Kibana are required to set up Packetbeat. Set the connection information
in packetbeat.yml.
• Self-Managed: Set the host and port where Packetbeat can find the Elasticsearch installation, and set the
username and password of a user who is authorized to set up Packetbeat.
26 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
For example:
1. output.elasticsearch:
2. hosts: ["https://myEShost:9200"]
3. username: "packetbeat_internal"
4. password: "YOUR_PASSWORD"
5. ssl:
6. enabled: true
7. ca_trusted_fingerprint: "b9a10bbe64ee9826abeda6546fc988c8bf798b41957c33d05db736716513dc9c"
• If you plan to use our pre-built Kibana dashboards, configure the Kibana endpoint. Skip this step if Kibana
is running on the same host as Elasticsearch.
1. setup.kibana:
2. host: "mykibanahost:5601"
3. username: "my_kibana_user"
4. password: "{pwd}"
You can send data to other outputs, such as Logstash, but that requires additional configuration and setup.
In packetbeat.yml, configure the network devices and protocols to capture traffic from.
• Set the sniffer type. By default, Packetbeat uses pcap, which uses the libpcap library and works on most
platforms.
packetbeat.interfaces.device: eth0
• In the protocols section, configure the ports where Packetbeat can find each protocol. If you use any non-
standard ports, add them here. Otherwise, use the default values.
packetbeat.protocols:
27 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Packetbeat comes with predefined assets for parsing, indexing, and visualizing your data. To load these assets:
-e is optional and sends output to standard error instead of the configured log output.
Packetbeat comes with pre-built Kibana dashboards and UIs for visualizing log data. You loaded the dashboards
earlier when you ran the setup command.
1. Launch Kibana
Self-Managed
Point your browser to http://localhost:5601, replacing localhost with the name of the Kibana host.
In the side navigation, click Discover. To see Packetbeat data, make sure the predefined packetbeat-* index pattern
is selected.
[13]
❖ Winlogbeat
This guide describes how to get started quickly with Windows log monitoring. You’ll learn how to:
28 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
You need Elasticsearch for storing and searching your data, and Kibana for visualizing and managing it.
• Self-managed
Note:
If script execution is disabled on your system, you need to set the execution policy for the current session to allow
the script to run. For example: PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-winlogbeat.ps1.
• Elasticsearch Self-Managed
a. Set the host and port where Winlogbeat can find the Elasticsearch installation, and set the username and
password of a user who is authorized to set up Winlogbeat.
b. For example:
output.elasticsearch:
hosts: ["https://myEShost:9200"]
29 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
username: "winlogbeat_internal"
password: "YOUR_PASSWORD"
ssl:
enabled: true
ca_trusted_fingerprint: "b9a10bbe64ee9826abeda6546fc988c8bf798b41957c33d05db736716513dc9c"
c. If you plan to use our pre-built Kibana dashboards, configure the Kibana endpoint. Skip this step if
Kibana is running on the same host as Elasticsearch.
setup.kibana:
host: "mykibanahost:5601"
username: "my_kibana_user"
password: "{pwd}"
1. Under winlogbeat.event_log, specify a list of event logs to monitor. By default, Winlogbeat monitors
application, security, and system logs.
• winlogbeat.event_logs:
• - name: Application
• - name: Security
• - name: System
• logging.to_files: true
• logging.files:
• path: C:\ProgramData\winlogbeat\Logs
• logging.level: info
3. After you save your configuration file, test it with the following command.
Winlogbeat comes with predefined assets for parsing, indexing, and visualizing your data. To load these assets:
30 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Before starting Winlogbeat, modify the user credentials in winlogbeat.yml and specify a user who is authorized to
publish events.
Winlogbeat should now be running. If you used the logging configuration described here, you can view the log
file at C:\ProgramData\winlogbeat\Logs\winlogbeat.
You can view the status of the service and control it from the Services management console in Windows. To
launch the management console, run this command:
Stop Winlogbeat
Winlogbeat comes with pre-built Kibana dashboards and UIs for visualizing log data. You loaded the dashboards
earlier when you ran the setup command.
1. Launch Kibana:
Self-Managed
i.Point your browser to http://localhost:5601, replacing localhost with the name of the kibana host.
II.In the side navigation, click Discover. To see Winlogbeat data, make sure the predefined winlogbeat-
* index pattern is selected.
III.In the side navigation, click Dashboard, then select the dashboard that you want to open.
[14]
e. Application Performance Monitoring (APM)
31 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Prerequisites
You need Elasticsearch for storing and searching your data, and Kibana for visualizing and managing it. Also
can use Hosted Elasticsearch service on elastic cloud or self-manage the elastic stack on your own hardware.
Self-Managed
• Elasticsearch cluster and Kibana (version 8.5) with a basic license or higher.
• Secure, encrypted connection between Kibana and Elasticsearch.
• Internet connection for Kibana to download integration packages from the Elastic Package Registry.
Make sure the Kibana server can connect to https://epr.elastic.co on port 443.
• Kibana user with All privileges on Fleet and Integrations. Since many Integrations assets are shared
across spaces, users need the Kibana privileges in all spaces.
• In the Elasticsearch configuration, the built-in API key service must be enabled.
(xpack.security.authc.api_key.enabled: true).
• In the Kibana configuration, the saved objects encryption key must be set. Fleet requires this setting in
order to save API keys and encrypt them in Kibana. You can either
set xpack.encryptedSavedObjects.encryptionKey to an alphanumeric value of at least 32 characters, or
run the kibana-encryption-keys command to generate the key.
Example Security settings
For testing purposes, you can use the following settings to get started quickly, but make sure you properly secure
the Elastic Stack before sending real data.
elasticsearch.yml example:
• xpack.security.enabled: true
• xpack.security.authc.api_key.enabled: true
Kibana.yml example
• elasticsearch.username: "kibana_system"
• xpack.encryptedSavedObjects.encryptionKey: "something_at_least_32_characters"
The password should be stored in the Kibana keystore as described in the Elasticsearch security
documentation.
Use Fleet in Kibana to get APM data into the Elastic Stack. The first time you use Fleet, you might need to set it
up and add a Fleet Server:
Self-Managed
To deploy a self-managed Fleet server, you install an Elastic Agent and enroll it in an agent policy containing the
fleet server integration.
32 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Note: You can install only a single Elastic Agent per host, which means you cannot run Fleet Server and another
Elastic Agent on the same host unless you deploy a containerized Fleet Server.
1. In Kibana, go to Management > Fleet > Settings. For more information about these settings, see Fleet
settings.
2. Under Fleet Server hosts, click Edit hosts and specify one or more host URLs your Elastic Agents will
use to connect to Fleet Server. For example, https://192.0.2.1:8220, where 192.0.2.1 is the host IP where
you will install Fleet Server. Save and apply your settings.
3. In the Elasticsearch hosts field, specify the Elasticsearch URLs where Elastic Agents will send data. For
example, https://192.0.2.0:9200. Skip this step if you’ve started the Elastic Stack with security enabled.
Note:
• Choose Quick Start if you want Fleet to generate a Fleet Server policy and enrollment token for
you.
• Choose Advanced if you want either:
• Use your own Fleet server policy.
• Use your own TLS certificates to encrypt traffic between Elastic Agents and Fleet Server.
• It’s recommended you generate a unique service token for each Fleet Server. For other ways to
generate service tokens, see elasticsearch-service-tokens.
• If you are providing your own certificates:
o Before running the install command, make sure you replace the values in angle brackets.
o Note that the URL specified by --url must match the DNS name used to generate the
certificate specified by --fleet-server-cert.
• The install command installs the Elastic Agent as a managed service and enrolls it in a Fleet
Server policy.
If installation is successful, you’ll see confirmation that Fleet Server connected. Click Continue enrolling Elastic
Agent to begin enrolling your agents in Fleet Server.
Note:
If you’re unable to add a Fleet-managed agent, click the Agents tab and confirm that the agent running Fleet Server
is healthy.
The APM integration does not support running Elastic Agent in standalone mode; you must use Fleet to manage
Elastic Agent.
Step 2: Configure the APM integration
Elastic Cloud runs a hosted version of Integrations Server that includes the APM integration. Self-managed users
will need to add the APM integration before configuring it.
Self-Managed
33 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
IV. Click Save and continue. This step takes a minute or two to complete. When it’s done, you’ll have an
agent policy that contains an APM integration policy for the configuration you just specified.
V. To view the new policy, click Agent policy 1. Any Elastic Agents assigned to this policy will collect
APM data from your instrumented services.
Elastic Agent is a single, unified way to add monitoring for logs, metrics, and other types of data to a host. It can
also protect hosts from security threats, query data from operating systems, forward data from remote services or
hardware, and more. A single agent makes it easier and faster to deploy monitoring across your infrastructure. Don’t
confuse Elastic Agent with APM agents—they are different components.
If you plan on enabling Real User Monitoring (RUM), you must run Elastic Agent centrally. If RUM is disabled,
you should run Elastic Agent on edge machines.
a. If you are enrolling the agent in a Fleet Server that uses your organization’s certificate you must add the --
certificate-authorities option to the command provided in the in-product instructions. If you do not include
the certificate, you will see the following error: "x509: certificate signed by unknown authority".
After about a minute, the agent will enroll in Fleet, download the configuration specified in the agent
policy, and start collecting data.
Note:
• If you encounter an "x509: certificate signed by unknown authority" error, you might be trying
to enroll in a Fleet Server that uses self-signed certs. To fix this problem in a non-production
environment, pass the --insecure flag.
• Optionally, you can use the --tag flag to specify a comma-separated list of tags to apply to the
enrolled Elastic Agent.
• Refer to Installation layout for the location of installed Elastic Agent files.
• Because Elastic Agent is installed as an auto-starting service, it will restart automatically if the
system is rebooted.
To confirm that Elastic Agent is installed and running, go to the Agents tab in Fleet.
• Check the Elastic Agent logs. If you use the default policy, agent logs and metrics are collected
automatically unless you change the default settings.
APM agents are written in the same language as your service. To monitor a new service, you must install the agent
and configure it with a service name, APM Server host, and Secret token.
• Service name: The APM integration maps an instrumented service’s name–defined in each APM agent’s
configuration– to the index that its data is stored in Elasticsearch. Service names are case-insensitive and
34 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
must be unique. For example, you cannot have a service named Foo and another named foo. Special
characters will be removed from service names and replaced with underscores (_).
• APM Server URL: The host and port that APM Server listens for events on. This should match the host
and port defined when setting up the APM integration.
• Secret token: Authentication method for APM agent and APM Server communication. This should match
the secret token defined when setting up the APM integration.
PHP
• dpkg -i <package-file>.deb
• elastic_apm.server_url=http://localhost:8200
• elastic_apm.secret_token=SECRET_TOKEN
• elastic_apm.service_name="My-service"
Back in Kibana, under Observability, select APM. You should see application performance monitoring data
flowing into the Elastic Stack!
[15]
f. Elasticsearch Hadoop
Installation
Elasticsearch-hadoop binaries can be obtained either by downloading them from the elastic.co site as a ZIP
(containing project jars, sources and documentation) or by using any Maven-compatible tool with the following
dependency:
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-hadoop</artifactId>
<version>8.6.1</version>
</dependency>
The jar above contains all the features of elasticsearch-hadoop and does not require any other dependencies at
runtime; in other words it can be used as is.elasticsearch-hadoop binary is suitable for Hadoop 2.x (also known as
YARN) environments. Support for Hadoop 1.x environments are deprecated in 5.5 and will no longer be tested
against in 6.0.
35 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Minimalistic binaries
In addition to the uber jar, elasticsearch-hadoop provides minimalistic jars for each integration, tailored for those
who use just one module (in all other situations the uber jar is recommended); the jars are smaller in size and use a
dedicated pom, covering only the needed dependencies. These are available under the same groupId, using an
artifactId with the pattern elasticsearch-hadoop-{integration}:
Map/Reduce.
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-hadoop-mr</artifactId>
<version>8.6.1</version>
</dependency>
Apache Hive.
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-hadoop-hive</artifactId>
<version>8.6.1</version>
</dependency>
Apache Pig.
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-hadoop-pig</artifactId>
<version>8.6.1</version>
</dependency>
Apache Spark.
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-spark-30_2.12</artifactId>
<version>8.6.1</version>
</dependency>
Storm
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-storm</artifactId>
36 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
<version>8.6.1</version>
</dependency>
Development Builds
Development (or nightly or snapshots) builds are published daily at sonatype-oss repository (see below). Make
sure to use snapshot versioning:
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-hadoop</artifactId>
<version>{version}-SNAPSHOT</version>
</dependency>
<repositories>
<repository>
<id>sonatype-oss</id>
<url>http://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>\
37 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
[16]
4 CONFIGURE THE APPLIANCE
When the base project deployment is complete, we need to configure the appliance to deploy the workload with
good defaults and requires very little configuration. The configuration files should contain settings which are
node-specific (such as node.name and paths), or settings which a node requires in order to be able to join a cluster,
such as cluster.name and network. Host.
These files are in the config directory, whose default location depends on whether or not the installation is from an
archive distribution (tar.gz or zip) or a package distribution (Debian or RPM packages).
For the archive distributions, the config directory location defaults to $ES_HOME/config. The location of the
config directory can be changed via the ES_PATH_CONF environment variable as follows:
1. ES_PATH_CONF=/path/to/my/config ./bin/elasticsearch
Alternatively, you can export the ES_PATH_CONF environment variable via the command line or via your shell
profile.
For the package distributions, the config directory location defaults to /etc/elasticsearch. The location of the config
directory can also be changed via the ES_PATH_CONF environment variable, but note that setting this in your
shell is not sufficient. Instead, this variable is sourced from /etc/default/elasticsearch (for the Debian package)
and /etc/sysconfig/elasticsearch (for the RPM package). You will need to edit
the ES_PATH_CONF=/etc/elasticsearch entry in one of these files accordingly to change the config directory
location.
To configure the file format of Kibana, ELK 1, ELK2 and ELK 3 please go through the below documents which are
listed below in Addendum.
I. Kibana Configuration
II. Elasticsearch-ELK 1Configuration
III. Elasticsearch-ELK 2 Configuration
IV. Elasticsearch-ELK 3 Configuration
The configuration format is YAML. Here is an example of changing the path of the data and logs directories:
1. path:
2. data: /var/lib/elasticsearch
3. logs: /var/log/elasticsearch
38 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
1. path.data: /var/lib/elasticsearch
2. path.logs: /var/log/elasticsearch
1. discovery.seed_hosts:
2. - 192.168.1.10:9300
3. - 192.168.1.11
4. - seeds.mydomain.com
Though less common, you can also format non-scalar values as arrays:
Environment variables referenced with the ${...} notation within the configuration file will be replaced with the
value of the environment variable. For example:
1. node.name: ${HOSTNAME}
2. network.host: ${ES_NETWORK_HOST}
Values for environment variables must be simple strings. Use a comma-separated string to provide values that
Elasticsearch will parse as a list. For example, Elasticsearch will split the following string into a list of values for
the ${HOSTNAME} environment variable:
1. export HOSTNAME="host1,host2"
[17]
Important Elasticsearch configuration
Elasticsearch requires very little configuration to get started, but there are a number of items which must be
considered before using your cluster in production:
• Path settings
• Cluster name setting
• Node name setting
• Network host settings
• Discovery settings
• JVM fatal error log setting
In Elastic Cloud service configures these items automatically, making your cluster production-ready by default.
Path Settings
Elasticsearch writes the data you index to indices and data streams to a data directory. Elasticsearch writes its own
application logs, which contain information about cluster health and operations, to a logs directory.
39 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
In production, we strongly recommend you set the path.data and path.logs in elasticsearch.yml to locations outside
of $ES_HOME. Supported path.data and path.logs values vary by platform:
Unix-like systems
1. path:
2. data: /var/data/elasticsearch
3. logs: /var/log/elasticsearch
1. cluster.name: logging-prod
1. node.name: prod-data-2
1. network.host: 192.168.1.10
discovery.seed_hosts
When you want to form a cluster with nodes on other hosts, use the static discovery.seed_hosts setting. This
setting provides a list of other nodes in the cluster that are master-eligible and likely to be live and contactable to
seed the discovery process. This setting accepts a YAML sequence or array of the addresses of all the master-
eligible nodes in the cluster. Each address can be either an IP address or a hostname that resolves to one or more
IP addresses via DNS.
1. discovery.seed_hosts:
2. - 192.168.1.10:9300
3. - 192.168.1.11
4. - seeds.mydomain.com
5. - [0:0:0:0:0:ffff:c0a8:10c]:9301
40 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
cluster.initial_master_nodes
When you start an Elasticsearch cluster for the first time, a cluster bootstrapping step determines the set of master-
eligible nodes whose votes are counted in the first election. In development mode, with no discovery settings
configured, this step is performed automatically by the nodes themselves.
Because auto-bootstrapping is inherently unsafe, when starting a new cluster in production mode, you must
explicitly list the master-eligible nodes whose votes should be counted in the very first election. You set this list
using the cluster.initial_master_nodes setting.
1. discovery.seed_hosts:
2. - 192.168.1.10:9300
3. - 192.168.1.11
4. - seeds.mydomain.com
5. - [0:0:0:0:0:ffff:c0a8:10c]:9301
6. cluster.initial_master_nodes:
7. - master-node-a
8. - master-node-b
9. - master-node-c
The Elastic Security app is a highly interactive workspace designed for security analysts that provides a clear
overview of events and alerts from your environment. You can use the interactive UI to drill down into areas of
interest.
Search
Filter for alerts, events, processes, and other important security data by entering Kibana Query language (KQL)
queries in the search bar, which appears at the top of each page throughout the app. A date/time filter set to Today is
enabled by default but can be changed to any time range.
41 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Navigation Menu
The navigation menu contains direct links and expandable groups, identified by the group icon.
• Click a top-level link to go directly to its landing page, which contains links and information for related
pages.
• Click a group’s icon ( ) to open its flyout menu, which displays links to related pages within that group.
Click a link in the flyout to navigate to its landing page.
• Click the Collapse side navigation icon ( ) to collapse and expand the main navigation menu.
42 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Dashboards
43 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Error! Reference source not found. Figure 9 Detection and Response (2)
Alerts
44 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Use the detection engine to create and manage rules and view the alerts these rules create. Rules periodically
search indices (such as logs-* and filebeat-*) for suspicious source events and create alerts when a rule’s
conditions are met. When an alert is created, its status is Open. To help track investigations, an alert’s status can
be set as Open, Acknowledged, or Closed.
In addition to creating own rules, enable Elastic prebuilt rules to immediately start detecting suspicious activity.
Once the prebuilt rules are loaded and running, Tune detection rules and add and manage exceptions explain how
to modify the rules to reduce false positives and get a better set of actionable alerts. You can also use exceptions
and value lists when creating or modifying your own rules.
a. Endpoint Security: Automatically creates an alert from all incoming Elastic Endpoint alerts. To receive
Elastic Endpoint alerts, you must install the Endpoint agent on your hosts.
When this rule is enabled, the following Endpoint events are displayed as detection alerts:
b. External Alerts: Automatically creates an alert for all incoming third-party system alerts (for example,
Suricata alerts).
45 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
If you want to receive notifications via external systems, such as Slack or email, when alerts are created,
use the Kibana Alerting and Actions framework. After rules have started running, you can monitor their
executions to verify they are functioning correctly, as well as view, manage, and troubleshoot alerts. You
can create and manage rules and alerts via the UI or the Detections API.
Findings
By default, the Findings page lists all findings, without grouping or filtering.
1. Select Group by → Resource to display a list of resources sorted by their total number of failed findings.
2. Click a resource ID to display the findings associated with that resource.
Filter findings
46 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Timelines
Investigate alerts and complex threats — such as lateral movement — in your network. Timelines are interactive
and allow you to share your findings with other team members.
Figure 13 Timelines
You can drag or send fields of interest to a Timeline to create the desired query. For example, you can add fields
from tables and histograms on the Overview, Alerts, Hosts, and Network pages, as well as from other Timelines.
Alternatively, you can add a query directly in Timeline by clicking + Add field
47 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Timelines are responsive, and they persist as you move through the Elastic Security app collecting data. Auto-
saving ensures that the results of your investigation are available for later review. To record and share your
findings with others, attach your Timeline to a case.Timeline templates allow you to define the source event fields
used when you investigate alerts in Timeline. You can select whether the fields use predefined values or values
retrieved from the alert.
You can select whether Timeline displays detection alerts and other raw events, or just alerts. By default, Timeline
displays both raw events and alerts. To hide raw events and display alerts only, click Data view to the right of the
date and time picker, then select Show only detection alerts.
To further inspect an event or detection alert, click the View details button. A flyout with event or alert details
appears.
48 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Many types of events automatically appear in preconfigured views that provide relevant contextual information,
called Event Renderers. You can display and turn them on or off with the Settings menu in the upper left corner of
the results pane:
49 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
The example above displays the Flow event renderer, which highlights the movement of data between its source
and destination. If you see a particular part of the rendered event that interests you, you can drag it up to the drop
zone below the query bar for further investigation.
By placing fields within the drop zone, you turn them into query filters. Their relative placement specifies their
logical relationships: horizontally adjacent filters use AND, while vertically adjacent filters use OR.
Click a filter to access additional operations such as Add filter, Clear all, Load saved query, and more.
50 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
To attach a Timeline to a new or existing case, open it, click Attach to case in the upper right corner, then select
either Attach to new case or Attach to existing case.
You can view, duplicate, export, delete, and create templates from existing Timelines:
1. Go to Timelines.
2. Click the All actions menu in the desired row, then select an action:
• Create template from timeline (refer to About Timeline templates)
• Duplicate timeline
• Export selected (refer to Export and import Timelines)
• Delete selected
You can export and import Timelines, which enables you to share Timelines from one Kibana space or instance to
another. Exported Timelines are saved as .ndjson files.
To export Timelines:
51 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
• Go to Timelines.
• Either click the All actions menu in the relevant row and select Export selected, or select multiple
Timelines and then click Bulk actions → Export selected.
To import Timelines:
• Click Import, then select or drag and drop the relevant .ndjson file.
When forming EQL queries, you can write a basic query to return a list of events and alerts. Or, you can create
sequences of EQL queries to view matched, ordered events across multiple event categories. Sequence queries are
useful for identifying and predicting related events. They can also provide a more complete picture of potential
adversary behavior in your environment, which you can use to create or update rules and detection alerts.
• Specify the date and time range that you want to investigate.
• Reorder the columns and choose which fields to display.
• Choose a data view and whether to show detection alerts only.
Cases
Collect and share information about security issues by opening a case in Elastic Security. Cases allow you to track
key investigation details, collect alerts in a central location, and more. The Elastic Security UI provides several ways
to create and manage cases. Alternatively, you can use the cases API to perform the same tasks. You can also send
cases to these external systems by configuring external connectors:
• ServiceNow ITSM
• ServiceNow SecOps
• Jira (including Jira Service Desk)
• IBM Resilient
• Swimlane
52 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Expand the Explore page to view Hosts, Networks and Users pages.
53 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Hosts:
Examine key metrics for host-related security events using graphs, charts, and interactive data tables.
Figure 21 Hosts
54 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Network
Explore the interactive map to discover key network activity metrics and investigate network events further in
Timeline.
55 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Users:
Access a comprehensive overview of user data to help you understand authentication and user behaviour within
your environment.
Figure 24 Users
56 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Intelligence
The Intelligence section contains the indicators page, which collects data from enabled threat intelligence feeds
and provides a centralized view of indicators of compromise (IoCs).
Threat intelligence is a research function that analyzes current and emerging threats and recommends appropriate
actions to strengthen a company’s security posture. Threat intelligence requires proactivity to be useful, such as
gathering, analyzing, and investigating various threat and vulnerability data sources.
• From the Elastic Security app main menu, go to Intelligence → Indicators → Add Integrations.
• From the Kibana main menu, click Add integrations. Scroll down the list of integration
categories and select Threat Intelligence to filter by threat intelligence integrations.
2. Select a threat intelligence integration, then complete the integration’s guided installation.
3. Return to the Indicators page in Elastic Security. Refresh the page if indicator data isn’t displaying.
Troubleshooting
If indicator data is not appearing in the indicators table after you installed a threat intelligence integration:
• Verify that the index storing indicator documents is included in the default Elastic Security
indices (securitySolution:defaultIndex). The index storing indicator documents will differ based on the
way you’re collecting indicator data:
57 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Indicators page UI
After you add indicators to the indicators page, you can examine, search, filter, and take action on indicator data.
Indicators also appear in the Trend view, which shows the total values in the legend .
Figure 26 Indicators
Examine indicator details
The indicator page contains the informational like a summary of the indicator, including the indicator’s name, the
threat intelligence feed it came from, the indicator type, and additional relevant data.
58 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
When you add an indicator to Timeline, a new Timeline opens with a pre-populated KQL query. The query contains
the indicator field-value pair that you selected plus the field-value pair of the mapped source event.
For example, imagine you’ve added this file hash indicator to Timeline:
threat.indicator.file.hash.sha256 : c207213257a63589b1e1bd2f459b47becd000c1af8ea7983dd9541aff145c3ba
A new Timeline opens with an automatically populated KQL query. The query contains the indicator field-value
pair (mentioned previously) and the mapped source event field-value pair, which is:
file.hash.sha256 : c207213257a63589b1e1bd2f459b47becd000c1af8ea7983dd9541aff145c3ba.
Using a KQL query that includes both the indicator and source event allows Timeline to find all events and alerts
that have matching field-value pairs.
59 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
Attaching indicators to cases provides more context and available actions for your investigations. This
feature allows you to easily share or escalate threat intelligence to other teams.
60 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
• Indicator name: Click the linked name to open the Indicator details flyout, which contains additional
information about the indicator. Indicator details are in JSON format.
• Feed name: The threat feed from which the indicator was ingested.
• Indicator type: The indicator type, for example, file or .exe.
To remove an indicator attached to a case, click More actions (…) → Delete attachment in the case comment.
61 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
• Event filters: View and manage event filters, which allow you to filter endpoint events you don’t need to
want stored in Elasticsearch.
• Host isolation exceptions: View and manage host isolation exceptions, which specify IP addresses that can
communicate with your hosts even when those hosts are blocked from your network.
• Blocklist: View and manage the blocklist, which allows you to prevent specified applications from running
on hosts, extending the list of processes that Elastic Defend considers malicious.
• CSP Benchmarks: View, enable, or disable benchmark rules.
6 ADDENDUM
Kibana Configuration
Below is the list of command and the configuration file used for Kibana server. This file specifies
everything that are used in Kibana server during configuration.
# For more configuration options see the configuration guide for Kibana in
# https://www.elastic.co/guide/index.html
# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
62 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host: "192.168.18.171"
# Enables you to specify a path to mount Kibana at if you are running behind a proxy.
# Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath
# from requests it receives, and to prevent a deprecation warning at startup.
# This setting cannot end in a slash.
#server.basePath: ""
# Specifies whether Kibana should rewrite requests that are prefixed with
# `server.basePath` or require that they are rewritten by your reverse proxy.
# Defaults to `false`.
#server.rewriteBasePath: false
# Specifies the public URL at which Kibana is available for end users. If
# `server.basePath` is configured this URL should end with the same basePath.
#server.publicBaseUrl: ""
63 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
# Time in milliseconds to wait for Elasticsearch to respond to pings. Defaults to the value of
# the elasticsearch.requestTimeout setting.
# elasticsearch.pingTimeout: 1500
# Time in milliseconds to wait for responses from the back end or Elasticsearch. This value
# must be a positive integer.
#elasticsearch.requestTimeout: 30000
# The maximum number of sockets that can be used for communications with elasticsearch.
# Defaults to `Infinity`.
#elasticsearch.maxSockets: 1024
# Specifies whether Kibana should use compression for communications with elasticsearch
# Defaults to `false`.
#elasticsearch.compression: false
# Header names and values that are sent to Elasticsearch. Any custom headers cannot be overwritten
# by client-side headers, regardless of the elasticsearch.requestHeadersWhitelist configuration.
64 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
#elasticsearch.customHeaders: {}
# Time in milliseconds for Elasticsearch to wait for responses from shards. Set to 0 to disable.
#elasticsearch.shardTimeout: 30000
# Enables you to specify a path to the PEM file for the certificate
# To disregard the validity of SSL certificates, change this setting's value to 'none'.
#elasticsearch.ssl.verificationMode: full
65 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
# layout:
# type: json
# Specifies locale to be used for all localizable strings, dates and number formats.
# Supported languages are the following: English (default) "en", Chinese "zh-CN", Japanese "ja-JP", French "fr-
FR".
#i18n.locale: "en"
66 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
# The maximum payload size for indexing batches of upgraded saved objects.
# To avoid migrations failing due to a 413 Request Entity Too Large response from Elasticsearch.
# This value should be lower than or equal to your Elasticsearch cluster’s `http.max_content_length`
# configuration option. Default: 100mb
#migrations.maxBatchSizeBytes: 100mb
# The number of times to retry temporary migration failures. Increase the setting
# if migrations fail frequently with a message such as `Unable to complete the [...] step after
# 15 attempts, terminating`. Defaults to 15
#migrations.retryAttempts: 15
67 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
xpack.fleet.outputs: [{id: fleet-default-output, name: default, is_default: true, is_default_monitoring: true, type:
elasticsearch, hosts: ['https://192.168.18.171:9200'], ca_trusted_fingerprint:
379deb27bff02256f432f93c8ee48cc7f08252eb04c26bd44df76205ff4f7857}]
xpack.encryptedSavedObjects.encryptionKey: 2P-$(ASD>3My[~6)wJyTPz(ScH8k`~_M
Elasticsearch-ELK 1Configuration
Below is the list of command and the configuration file used for ELK1 server. This file specifies everything that are
used in ELK1 server during configuration.
68 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
69 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["elk1", "elk2", "elk3"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["elk1", "elk2", "elk3"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# --------------------------------- Readiness ----------------------------------
#
# Enable an unauthenticated TCP readiness endpoint on localhost
#
#readiness.port: 9399
#
# ---------------------------------- Various -----------------------------------
#
# Allow wildcard deletion of indices:
#
#action.destructive_requires_name: false
70 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
xpack.security.enrollment.enabled: true
# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
enabled: true
keystore.path: certs/http.p12
71 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: hs-elastic
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: elk2
node.roles: [ master,data ]
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/lib/elasticsearch
#
# Path to log files:
#
path.logs: /var/log/elasticsearch
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
72 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# By default Elasticsearch is only accessible on localhost. Set a different
# address here to expose this node on the network:
#
network.host: 192.168.18.229
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["elk1", "elk2", "elk3"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["elk1", "elk2", "elk3"]
#
# For more information, consult the discovery and cluster formation module documentation.
73 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
#
# --------------------------------- Readiness ----------------------------------
#
# Enable an unauthenticated TCP readiness endpoint on localhost
#
#readiness.port: 9399
#
# ---------------------------------- Various -----------------------------------
#
# Allow wildcard deletion of indices:
#
#action.destructive_requires_name: false
xpack.security.enrollment.enabled: true
# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
enabled: true
keystore.path: certs/http.p12
74 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
truststore.path: certs/transport.p12
# Discover existing nodes in the cluster
#discovery.seed_hosts: ["192.168.18.171:9300"]
75 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
76 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
#
network.host: 192.168.18.113
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["elk1", "elk2", "elk3"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["elk1", "elk2", "elk3"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# --------------------------------- Readiness ----------------------------------
#
# Enable an unauthenticated TCP readiness endpoint on localhost
#
#readiness.port: 9399
#
# ---------------------------------- Various -----------------------------------
#
# Allow wildcard deletion of indices:
#
#action.destructive_requires_name: false
77 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
xpack.security.enrollment.enabled: true
# Enable encryption for HTTP API client connections, such as Kibana, Logstash, and Agents
xpack.security.http.ssl:
enabled: true
keystore.path: certs/http.p12
78 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
8 REFERENCES
[3] “HOW TO INSTALL AND CONFIGURE ELASTICSEARCH ON UBUNTU ?,” GEEKSFORGEEKS, 30 SEP 2022. [ONLINE].
AVAILABLE: HTTPS://WWW.GEEKSFORGEEKS.ORG/HOW-TO-INSTALL-AND-CONFIGURE-ELASTICSEARCH-ON-
UBUNTU/.
[4] “INSTALL KIBANA WITH DEBIAN PACKAGE,” ELASTICSEARCH B.V, 2023. [ONLINE]. AVAILABLE:
HTTPS://WWW.ELASTIC.CO/GUIDE/EN/KIBANA/CURRENT/DEB.HTML.
[6] “GET STARTED WITH BEATS,” ELASTICSEARCH B.V., 2023. [ONLINE]. AVAILABLE:
HTTPS://WWW.ELASTIC.CO/GUIDE/EN/BEATS/LIBBEAT/8.6/GETTING-STARTED.HTML.
[7] “AUDITBEAT QUICK START: INSTALLATION AND CONFIGURATION,” ELASTICSEARCH B.V., 2023. [ONLINE].
AVAILABLE: HTTPS://WWW.ELASTIC.CO/GUIDE/EN/BEATS/AUDITBEAT/8.6/AUDITBEAT-INSTALLATION-
CONFIGURATION.HTML.
[8] “FILEBEAT QUICK START: INSTALLATION AND CONFIGURATION,” ELASTICSEARCH B.V, 2023. [ONLINE].
AVAILABLE: HTTPS://WWW.ELASTIC.CO/GUIDE/EN/BEATS/FILEBEAT/8.6/FILEBEAT-INSTALLATION-
CONFIGURATION.HTML.
[9] “FUNCTIONBEAT QUICK START: INSTALLATION AND CONFIGURATION,” ELASTICSEARCH B.V., 2023. [ONLINE].
AVAILABLE: HTTPS://WWW.ELASTIC.CO/GUIDE/EN/BEATS/FUNCTIONBEAT/8.6/FUNCTIONBEAT-INSTALLATION-
CONFIGURATION.HTML.
79 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
[10] “HEARTBEAT QUICK START: INSTALLATION AND CONFIGURATION,” ELASTICSEARCH B.V., 2023. [ONLINE].
AVAILABLE: HTTPS://WWW.ELASTIC.CO/GUIDE/EN/BEATS/HEARTBEAT/8.6/HEARTBEAT-INSTALLATION-
CONFIGURATION.HTML.
[11] “METRICBEAT QUICK START: INSTALLATION AND CONFIGURATION,” ELASTICSEARCH B.V., 2023. [ONLINE].
AVAILABLE: HTTPS://WWW.ELASTIC.CO/GUIDE/EN/BEATS/METRICBEAT/8.6/METRICBEAT-INSTALLATION-
CONFIGURATION.HTML#METRICBEAT-INSTALLATION-CONFIGURATION.
[12] “PACKETBEAT QUICK START: INSTALLATION AND CONFIGURATION,” ELASTICSEARCH B.V., 2023. [ONLINE].
AVAILABLE: HTTPS://WWW.ELASTIC.CO/GUIDE/EN/BEATS/PACKETBEAT/8.6/PACKETBEAT-INSTALLATION-
CONFIGURATION.HTML.
[13] “WINLOGBEAT QUICK START: INSTALLATION AND CONFIGURATION,” ELASTICSEARCH B.V., 2023. [ONLINE].
AVAILABLE: HTTPS://WWW.ELASTIC.CO/GUIDE/EN/BEATS/WINLOGBEAT/8.6/WINLOGBEAT-INSTALLATION-
CONFIGURATION.HTML.
[14] “APPLICATION PERFORMANCE MONITORING (APM),” ELASTICSEARCH B.V., 2023. [ONLINE]. AVAILABLE:
HTTPS://WWW.ELASTIC.CO/GUIDE/EN/APM/GUIDE/8.6/APM-QUICK-START.HTML.
[15] “ELASTICSEARCH FOR APACHE HADOOP AND SPARK:,” ELASTICSEARCH B.V., 2023. [ONLINE]. AVAILABLE:
HTTPS://WWW.ELASTIC.CO/GUIDE/EN/ELASTICSEARCH/HADOOP/8.6/INSTALL.HTML.
Index
A B
Access and Default Credentials ......................... 6 Base Product Deployment ................................. 6
Addendum .......................................................... 9
D
Additional Setup and Deployment ..................... 9
Digital IP Appliance Design Process ................. 5
Appliance Optimizer Utility AOU ..................... 5
Documents, Knowledge Base, and Technical
Audience and Purpose........................................ 4 Support ........................................................... 4
80 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com
p +61 1300 113 112 Solving Information Technology’s
Complexity
e [email protected]
I T
Important Considerations ................................... 5 Testing the Appliance ........................................ 8
Infrastructure Setup............................................ 5 Trademarks and Licensing................................. 9
Introduction ........................................................ 4 Troubleshooting DPX Appliance ...................... 9
P U
Prerequisites for updating .................................. 8 Updating the Appliance ..................................... 8
R
References ........................................................ 10
81 | P a g e
Operating from: AUS | USA | India | UK and NZ Headquarters HQ Address: 10-65 Tennant Street
Fyshwick, ACT Australia
www.Hyperscalers.com