DevTech101

DevTech101
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Installing and Configuring ELK

– Part one(1) – Install OS (OEL 7.2), Tuning
– Part two(2) – Configure KVM, Tuning
– Part three(3) – install elasticsearch, configuration
– Part four(4) – Install logstash, configuration
– Part five(5) – Install Kibana, configuration
– Part six(6) – General platform tips & tricks

This is Part one(1) – Install OS (OEL 7.2), Tuning

System Architecture

ServerVMMemoryMem LockedCPUDiskData-Disk
Client & Kibana
elk1elkcl132Gb16Gb825GbN/A
Search Servers
elk1elkls18Gb8Gb625GN/A
elk2elkls28Gb8Gb625GN/A
Elastic Search Master Nodes
elk1elkms132Gb20825GbN/A
elk1elkms232Gb20825GbN/A
elk2elkms332Gb20825GbN/A
Elastic Search Data Nodes
elk1elkdm164Gb30825Gb5Tb
elk2elkdm264Gb30825Gb5Tb
elk2elkdm364Gb30825Gb5Tb
Note: Add additional nodes on any layer as needed, for example client, data, or log

Install OEL 7.2 from ISO

Select XFS or Ext4 for the OS
Change swap size to 8Gb
Change /home to only use 25Gb

Install KVM packages

yum -y install qemu-kvm qemu-img virt-manager libvirt libvirt-python python-virtinst libvirt-client virt-install virt-viewer

yum -y install kvm libvirt python-virtinst virt-top virt-manager virt-v2v virt-viewer vim pv
# Note: Reboot is recommended

Configure Kvm network bridge

Add bridge name br0, will create that soon

cat ifcfg-enp6s0
[..] snip
# Add, Remove IP, GW, Netmask, DNS
BRIDGE=br0

Now Create the bridge file

DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
ONBOOT=yes
DELAY=0
IPADDR=10.10.3.47
NETMASK=255.255.252.0
GATEWAY=10.10.0.1
DNS1=10.10.3.1
DNS2=10.10.3.1
DOMAIN=domain.com

Enable forwarding

echo "net.ipv4.ip_forward = 1" >>/etc/sysctl.conf
sysctl -p /etc/sysctl.conf

Now lets create the bridge

brctl addbr br0
brctl addif br0 enp6s0

Complete services pre-requisite

Disable firewalld & selinux

cat /etc/selinux/config
SELINUX=disabled
SELINUXTYPE=targeted
SETLOCALDEFS=0

Start the proper services

# Disable firewall
systemctl stop firewalld
systemctl disable firewalld

# Start libvirt systemctl
systemctl restart libvirtd
systemctl enable libvirtd
systemctl status libvirtd

Make sure to reboot before starting to configure KVM

Next Part two(2) – Configure KVM, Tuning

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
%d bloggers like this: