{"id":2888,"date":"2025-10-04T12:16:36","date_gmt":"2025-08-28T08:11:46","guid":{"rendered":""},"modified":"2025-02-02T00:46:19","modified_gmt":"2025-02-01T23:46:19","slug":"how-to-install-cortex-observable-analysis-tool-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-cortex-observable-analysis-tool-on-ubuntu-22-04\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Cortex Observable Analysis Tool on Ubuntu 22.04"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<header>\n<h1>\u00a0<\/h1>\n<\/header>\n<article>\n<p>Cortex is a powerful open-source observable analysis tool that is used for cyber threat intelligence and incident response workflows. In this guide, we will walk through the steps to install Cortex on Ubuntu 22.04. Whether you\u2019re using a local machine or deploying Cortex on a , this guide will help you get started.<\/p>\n<section>\n<h2>Step 1: Update Your System<\/h2>\n<p>Before installing Cortex, ensure your system is up-to-date. Run the following commands to update your Ubuntu 22.04 system:<\/p>\n<pre><code>sudo apt update &amp;&amp; sudo apt upgrade<\/code><\/pre>\n<p>Keeping your system updated ensures the latest security patches and software updates. This is essential whether you\u2019re hosting locally or on a <a href=\"https:\/\/ie.netcloud24.com\">UK Windows VPS<\/a>.<\/p>\n<\/section>\n<section>\n<h2>Step 2: Install Java<\/h2>\n<p>Cortex requires Java to run. Install OpenJDK 11, the recommended version for Cortex, using the following command:<\/p>\n<pre><code>sudo apt install openjdk-11-jdk<\/code><\/pre>\n<p>After installation, verify that Java is installed:<\/p>\n<pre><code>java -version<\/code><\/pre>\n<p>The output should show OpenJDK 11 installed. Java is critical for running Cortex, whether hosted on Ubuntu or on a <a href=\"https:\/\/ie.netcloud24.com\">VPS Windows VPS Servers<\/a> setup.<\/p>\n<\/section>\n<section>\n<h2>Step 3: Install Elasticsearch<\/h2>\n<p>Cortex uses Elasticsearch as its database. To install Elasticsearch, first download and install its GPG key:<\/p>\n<pre><code>\r\nwget -qO - https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch | sudo apt-key add -\r\n            <\/code><\/pre>\n<p>Add the Elasticsearch repository:<\/p>\n<pre><code>\r\nsudo sh -c 'echo \"deb https:\/\/artifacts.elastic.co\/packages\/7.x\/apt stable main\" &gt; \/etc\/apt\/sources.list.d\/elastic-7.x.list'\r\nsudo apt update\r\n            <\/code><\/pre>\n<p>Now, install Elasticsearch:<\/p>\n<pre><code>sudo apt install elasticsearch<\/code><\/pre>\n<p>Once installed, start Elasticsearch and enable it to start on boot:<\/p>\n<pre><code>\r\nsudo systemctl start elasticsearch\r\nsudo systemctl enable elasticsearch\r\n            <\/code><\/pre>\n<p>This database will store Cortex&#8217;s analysis data, whether you\u2019re running on a local server or on a <a href=\"https:\/\/ie.netcloud24.com\">Windows VPSVirtual Private Server hosting<\/a>.<\/p>\n<\/section>\n<section>\n<h2>Step 4: Download and Install Cortex<\/h2>\n<p>Now that Java and Elasticsearch are installed, download the latest version of Cortex:<\/p>\n<pre><code>\r\ncd \/opt\r\nsudo wget https:\/\/download.thehive-project.org\/cortex-3.1.1-1.zip\r\nsudo unzip cortex-3.1.1-1.zip\r\nsudo mv cortex-3.1.1 \/opt\/cortex\r\n            <\/code><\/pre>\n<p>Set the correct ownership for the Cortex directory:<\/p>\n<pre><code>sudo chown -R cortex:cortex \/opt\/cortex<\/code><\/pre>\n<\/section>\n<section>\n<h2>Step 5: Configure Cortex<\/h2>\n<p>Next, you need to configure Cortex to communicate with Elasticsearch and set other application settings. Start by copying the default configuration file:<\/p>\n<pre><code>sudo cp \/opt\/cortex\/application.conf.example \/opt\/cortex\/application.conf<\/code><\/pre>\n<p>Edit the configuration file to set your database details and customize the application:<\/p>\n<pre><code>sudo nano \/opt\/cortex\/application.conf<\/code><\/pre>\n<p>Set the Elasticsearch URL and other essential details like so:<\/p>\n<pre><code>\r\n# Elasticsearch configuration\r\nsearch {\r\n  index = cortex\r\n  host = [\"http:\/\/127.0.0.1:9200\"]\r\n}\r\n            <\/code><\/pre>\n<p>Once done, save the file and exit.<\/p>\n<\/section>\n<section>\n<h2>Step 6: Run Cortex<\/h2>\n<p>To start Cortex, run the following command:<\/p>\n<pre><code>sudo \/opt\/cortex\/bin\/cortex<\/code><\/pre>\n<p>Cortex will start running, and you can access it via <code>http:\/\/your-server-ip:9001<\/code>. This interface allows you to manage observable analysis, whether you\u2019re using a local server or a <a href=\"https:\/\/ie.netcloud24.com\">UK VPS Windows<\/a> hosting platform.<\/p>\n<\/section>\n<section>\n<h2>Step 7: Configure Cortex as a Service<\/h2>\n<p>To ensure that Cortex starts automatically on boot, you can set it up as a systemd service. Create a service file:<\/p>\n<pre><code>sudo nano \/etc\/systemd\/system\/cortex.service<\/code><\/pre>\n<p>Add the following content to the file:<\/p>\n<pre><code>\r\n[Unit]\r\nDescription=Cortex Service\r\nAfter=network.target\r\n\r\n[Service]\r\nExecStart=\/opt\/cortex\/bin\/cortex\r\nUser=cortex\r\nRestart=always\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n            <\/code><\/pre>\n<p>Save the file, reload systemd, and enable the service:<\/p>\n<pre><code>\r\nsudo systemctl daemon-reload\r\nsudo systemctl enable cortex\r\nsudo systemctl start cortex\r\n            <\/code><\/pre>\n<p>Cortex will now automatically start on system boot, making it ideal for monitoring and observable analysis in production environments like <a href=\"https:\/\/ie.netcloud24.com\">Windows VPS hosting UK<\/a>.<\/p>\n<\/section>\n<footer>\n<p>Cortex is now installed and ready to help you with advanced observable analysis and threat intelligence workflows. For reliable and scalable hosting solutions, check out . They offer a wide range of options, including <strong>windows virtual private server hosting<\/strong>, <strong>windows vps hosting<\/strong>, and <strong>windows virtual dedicated server hosting<\/strong> to ensure that your application runs smoothly and efficiently. Whether you&#8217;re looking for <strong>windows vps italy<\/strong> or <strong>uk vps windows<\/strong> solutions, they have the right hosting package for your needs.<\/p>\n<\/footer>\n<\/article>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 Cortex is a powerful open-source observable analysis tool that is used for cyber threat intelligence and incident response workflows. In this guide, we will walk through\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-2888","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=2888"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/2888\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=2888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=2888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=2888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}