<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Munawar Syukur on Medium]]></title>
        <description><![CDATA[Stories by Munawar Syukur on Medium]]></description>
        <link>https://medium.com/@munawarsyukur?source=rss-c32151a6a5f2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*o0gqProxzOQWiNpx.jpg</url>
            <title>Stories by Munawar Syukur on Medium</title>
            <link>https://medium.com/@munawarsyukur?source=rss-c32151a6a5f2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:36:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@munawarsyukur/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to change JDK on Elasticsearch 8.x — Windows version]]></title>
            <link>https://munawarsyukur.medium.com/how-to-change-jdk-on-elasticsearch-8-x-windows-version-f5e3c2fa6a3?source=rss-c32151a6a5f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5e3c2fa6a3</guid>
            <category><![CDATA[jdk]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Munawar Syukur]]></dc:creator>
            <pubDate>Thu, 17 Nov 2022 04:19:44 GMT</pubDate>
            <atom:updated>2022-11-17T04:23:52.883Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to change JDK on Elasticsearch 8.x — Windows version</h3><p>For the last few days, I have been challenged by customers to change the Elasticsearch bundle JDK to Eclipse Temurin.</p><p>I’ve searched and googled around. There are no specific steps that can be followed. Most of the online articles happen on Linux, however I was looking for, windows OS.</p><p>For the above reason, I am creating this articles hoping that others that having the same issue with me can value this articles and follow thru.</p><ol><li>Download the Temurin on <a href="https://adoptium.net/en-GB/temurin/">https://adoptium.net/en-GB/temurin/</a>, suggestion to download the LTS.</li><li>Install it to any location that you want to place it. In my case I was install on <strong>C:\Program Files\Eclipse Adoptium\jdk-17.0.5.8-hotspot\</strong></li><li>Add JDK on the Windows Environment Variables, add <strong>ES_JAVA_HOME</strong> and set the temurin location path, then logoff from windows and login again to have immediate effects.</li><li>Verify the settings using Windows Command Prompt by typing <strong>echo %ES_JAVA_HOME% </strong>the capture should be shown as below.</li></ol><figure><img alt="Windows Advanced Variables" src="https://cdn-images-1.medium.com/max/668/1*96OSeumDHkUTYkO1rfBKtg.png" /><figcaption>Windows Environment Variables settings</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*Z_SkL0IZgsRP0f_bPjUsWg.png" /><figcaption><strong>echo %ES_JAVA_HOME%</strong></figcaption></figure><p>Once the temurin setup is completed and verified, next we need to test and ensure with Elasticsearch. In this article I was using version 8.5.0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VtzHDy2QqWoaSqHIKyM33g.png" /><figcaption>Elasticsearch JDK Validation</figcaption></figure><p>If you see the red box on the capture, meaning your JDK has been successfully changed.</p><p>Feel free to ask me anything if you have any questions on Elasticsearch.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5e3c2fa6a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create master node cluster on the elasticsearch version 8.1.]]></title>
            <link>https://munawarsyukur.medium.com/how-to-create-master-node-cluster-on-the-elasticsearch-version-8-1-5a2127b758c9?source=rss-c32151a6a5f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a2127b758c9</guid>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[node]]></category>
            <dc:creator><![CDATA[Munawar Syukur]]></dc:creator>
            <pubDate>Fri, 18 Mar 2022 11:03:21 GMT</pubDate>
            <atom:updated>2022-03-18T11:03:21.417Z</atom:updated>
            <content:encoded><![CDATA[<p>In the previous article we had learned how to setup Elasticsearch and Kibana, configure kibana so it able to connect with Elasticsearch.</p><p>In this article we are going to make this node into a master node and set it as a cluster. Theoretically the minimum elasticsearch cluster required 3 nodes as it will split the background process, We will try to add the node and proceed it sequencesially to ensure the cluster and the additional nodes working within the cluster.</p><p>Let’s do the hand-ons.</p><p>To perform the activity, we must go to the 1st node that already setup and make a few amendments in the elasticsearch.yml. Where is the file located, it’s located on the /etc/elasticsearch/elasticsearch.yml. If you’re having a problem accessing the files, you need to run it as suda or run as root.</p><p>Before proceeding, to avoid mistakes along the way we can make a copy of elasticsearch.yml as a backup.</p><p>Once the backup ready, then open the file $sudo vi elasticsearch.yml then follow the steps below.</p><p>Look and amend the elasticsearch.yml on the following section.</p><blockquote>1. cluster.name: my-application; remove # and change to cluster.name: any naming cluster;<br> 2. node.name: node-1; remove # and change to server hostname<br> 3. network.host: 192.168.0.1; remove # and change to non-loopback IP address<br> 4. http.port: 9200; remove # <br> <br> The step 5 and step 6 are a sample to make it more readable, please follow your hostname or ip address. <br> 5. discovery.seed_hosts: [“192.168.100.140”, “192.168.100.141”, “192.168.100.142”]<br> 6. cluster.initial_master_nodes: [“elkmaster01”,”elkmaster02&quot;, “elkmaster03”]<br> <br> 7. cluster.initial_master_nodes: [“elkmaster03”] add # and change to #cluster.initial_master_nodes: [“elkmaster03”]</blockquote><p>run these command to make the changes take effect immediately.</p><blockquote>sudo systemctl stop elasticsearch.service<br>sudo systemctl start elasticsearch.service</blockquote><p>Once the elasticsearch services up and running, run the command below to generate the token that will be used later during the additional nodes configuration.</p><blockquote>/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node</blockquote><p>Below is a sample token, you can ignore it because you will have new ones later.</p><blockquote>eyJ2ZXIiOiI4LjEuMCIsImFkciI6WyIxOTIuMTY4LjIwLjE0MDo5MjAwIl0sImZnciI6IjFkNzY5Nzk1ZjhjYmZjOTMxYzliZGNmZTA5OWJjYTlmYjEzYjE1ZjhkNjdlZWU3MGIwZmI1NTU5M2ZmMjE1MmMiLCJrZXkiOiJQa29aa244QjlHc3JUcWJtUmVMczpEUHFXa1lTUFRTLWFQWW84ckh2UF93In0=</blockquote><p>Copy and paste your token on the command screen into other text editor, Once you have the token, then your task is complete to create the node master cluster.</p><p>In the next article, I will guide you on how to add additional nodes into the elasticsearch cluster.</p><p>Feel free to subscribe me so that you won’t miss the update, thanks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a2127b758c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install Elasticsearch and Kibana version 8.1 on RHEL For Beginner]]></title>
            <link>https://munawarsyukur.medium.com/how-to-install-elasticsearch-and-kibana-version-8-1-on-rhel-for-beginner-124eee79e79c?source=rss-c32151a6a5f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/124eee79e79c</guid>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[kibana]]></category>
            <dc:creator><![CDATA[Munawar Syukur]]></dc:creator>
            <pubDate>Tue, 15 Mar 2022 10:19:03 GMT</pubDate>
            <atom:updated>2022-03-15T10:19:03.144Z</atom:updated>
            <content:encoded><![CDATA[<p>On this article we are going to perform Elasticsearch and Kibana installation stack on the RHEL, let’s start the process.</p><p><strong>Step 1. Download the installer</strong></p><p>Before we proceed, we need to download and ensure the installer is the latest version 8.1 as similar as this article.</p><blockquote><a href="https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.1.0-x86_64.rpm">https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.1.0-x86_64.rpm</a></blockquote><blockquote><a href="https://artifacts.elastic.co/downloads/kibana/kibana-8.1.0-x86_64.rpm">https://artifacts.elastic.co/downloads/kibana/kibana-8.1.0-x86_64.rpm</a></blockquote><p><strong>Step 2. Pre-Configuration</strong></p><p>On this article the installation process will be executed in the on-promise development environment, it is not required to use strict firewall. So, we need to stop the firewall services.</p><blockquote>$sudo systemctl stop firewalld.service</blockquote><blockquote>$sudo systemctl status firewalld.service</blockquote><p><strong>Take a note:</strong></p><ul><li>To perform the ELK installation your account must have permission to execute the installation or SUDO privileges.</li><li>For Production environment you need to ensure the firewall and port open to avoid issues during installation process.</li></ul><h3><strong>Elasticsearch and Kibana Overview</strong></h3><p>Elasticsearch is a real-time, distributed storage, search, and analytics engine. Kibana is an open source analytics and visualization platform designed to work with Elasticsearch.</p><h3><strong>Step 3. Elasticsearch setup</strong></h3><p>Run this command to perform Elasticsearch setup and wait until it complete and you will see the finish message below.</p><blockquote>$ sudo rpm -ivh elasticsearch-8.1.0-x86_64.rpm</blockquote><blockquote>[devops@munwarrior~]$ sudo rpm -ivh elasticsearch-8.1.0-x86_64.rpm</blockquote><blockquote>[sudo] password for devops:</blockquote><blockquote>warning: elasticsearch-8.1.0-x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY</blockquote><blockquote>Creating elasticsearch group… OK</blockquote><blockquote>Creating elasticsearch user… OK</blockquote><blockquote>— — — — — — — — — — — — — — Security autoconfiguration information — — — — — — — — — — — — — — —</blockquote><blockquote>Authentication and authorization are enabled.</blockquote><blockquote>TLS for the transport and HTTP layers is enabled and configured.</blockquote><blockquote>The generated password for the elastic built-in superuser is : Gw*LbsCh+cVXikp+XER8</blockquote><blockquote>If this node should join an existing cluster, you can reconfigure this with</blockquote><blockquote>‘/usr/share/elasticsearch/bin/elasticsearch-reconfigure-node — enrollment-token &lt;token-here&gt;’</blockquote><blockquote>after creating an enrollment token on your existing cluster.</blockquote><blockquote>You can complete the following actions at any time:</blockquote><blockquote>Reset the password of the elastic built-in superuser with</blockquote><blockquote>‘/usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic’.</blockquote><blockquote>Generate an enrollment token for Kibana instances with</blockquote><blockquote>‘/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana’.</blockquote><blockquote>Generate an enrollment token for Elasticsearch nodes with</blockquote><blockquote>‘/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node’.</blockquote><blockquote>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — -</blockquote><blockquote>### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd</blockquote><blockquote>sudo systemctl daemon-reload</blockquote><blockquote>sudo systemctl enable elasticsearch.service</blockquote><blockquote>### You can start elasticsearch service by executing</blockquote><blockquote>sudo systemctl start elasticsearch.service</blockquote><blockquote>[/usr/lib/tmpfiles.d/elasticsearch.conf:1] Line references path below legacy directory /var/run/, updating /var/run/elasticsearch → /run/elasticsearch; please update the tmpfiles.d/ drop-in file accordingly.</blockquote><p>Then you need to run the command below</p><blockquote>sudo systemctl daemon-reload</blockquote><blockquote>sudo systemctl enable elasticsearch.service</blockquote><blockquote>sudo systemctl start elasticsearch.service</blockquote><blockquote>sudo systemctl status elasticsearch.service</blockquote><p>Once the Elasticsearch installation finish, to validate the elasticsearch service is up and run this command</p><blockquote>$sudo curl — cacert /etc/elasticsearch/certs/http_ca.crt -u elastic <a href="https://localhost:9200/">https://localhost:9200</a></blockquote><blockquote>[devops@munwarrior]$ sudo curl — cacert /etc/elasticsearch/certs/http_ca.crt -u elastic <a href="https://localhost:9200/">https://localhost:9200</a></blockquote><blockquote>Enter host password for user ‘elastic’:</blockquote><blockquote>{</blockquote><blockquote>“name” : “node-1”,</blockquote><blockquote>“cluster_name” : “elasticsearch”,</blockquote><blockquote>“cluster_uuid” : “-ao6PfivQey_gJ20DDgdUg”,</blockquote><blockquote>“version” : {</blockquote><blockquote>“number” : “8.1.0”,</blockquote><blockquote>“build_flavor” : “default”,</blockquote><blockquote>“build_type” : “rpm”,</blockquote><blockquote>“build_hash” : “3700f7679f7d95e36da0b43762189bab189bc53a”,</blockquote><blockquote>“build_date” : “2022–03–03T14:20:00.690422633Z”,</blockquote><blockquote>“build_snapshot” : false,</blockquote><blockquote>“lucene_version” : “9.0.0”,</blockquote><blockquote>“minimum_wire_compatibility_version” : “7.17.0”,</blockquote><blockquote>“minimum_index_compatibility_version” : “7.0.0”</blockquote><blockquote>},</blockquote><blockquote>“tagline” : “You Know, for Search”</blockquote><blockquote>}</blockquote><h3><strong>Step 4. Kibana setup</strong></h3><p>Run this command to perform Kibana setup and wait until it complete and you will see the finish message.</p><blockquote>$ sudo rpm -ivh kibana-8.1.0-x86_64.rpm</blockquote><p>Before we run the Kibana services, we need to amend 2 important information on the kibana.yml.</p><blockquote>$sudo vi /etc/kibana/kibana.yml</blockquote><p>Search the parameter and uncomment it from the kibana.yml, then save.</p><blockquote>server.port: 5601</blockquote><blockquote>server.host: “192.168.100.100” {IP address}</blockquote><p>Once finish, then run the command below</p><blockquote>sudo systemctl daemon-reload</blockquote><blockquote>sudo systemctl enable kibana.service</blockquote><blockquote>sudo systemctl start kibana.service</blockquote><blockquote>sudo systemctl status kibana.service</blockquote><p>After running <strong>sudo systemctl status kibana.service</strong> you will see “<strong><em>http server running at </em></strong><a href="http://192.168.100.100:5601/"><strong><em>http://192.168.100.100:5601</em></strong></a>”, then open browser and paste the URL on the kibana status.</p><p>You will need to fill in the kibana token, to get the token you must go to <strong>Elasticsearch server</strong> located then run the command below.</p><blockquote>$sudo /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana</blockquote><p>Copy the auto-generated kibana token, paste onto the Kibana browser to complete the activity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=124eee79e79c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>