{"id":5125,"date":"2018-06-26T18:41:52","date_gmt":"2018-06-26T14:41:52","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/ubuntu-splunk-log-analyzer\/"},"modified":"2018-06-26T18:41:52","modified_gmt":"2018-06-26T14:41:52","slug":"how-to-install-splunk-log-analyzer-on-ubuntu-18-04-lts","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-splunk-log-analyzer-on-ubuntu-18-04-lts\/","title":{"rendered":"How to Install Splunk Log Analyzer on Ubuntu 18.04 LTS"},"content":{"rendered":"<p>Splunk is a powerful log database that can be used for searching, monitoring, and analyzing machine-generated big data through a web-interface. It is a very useful tool for analyzing, exploring and searching data. You can easily index, search, collect and visualize massive data streams in real-time from an application, web server, database, server platform, Cloud-network and many more using Splunk.<\/p>\n<p><strong>Splunk made up <\/strong>from<strong> three main components:<\/strong><\/p>\n<ol>\n<li>Splunk Forwarder : It is used for collecting the logs.<\/li>\n<li>Splunk Indexer : It is used for Parsing and Indexing the data.<\/li>\n<li>Splunk Search Head : Provides web interface for for searching, analyzing and reporting.<\/li>\n<\/ol>\n<p>In this tutorial, we will be going to learn how to install Splunk on Ubuntu 18.04 LTS (Bionic Beaver) server.<\/p>\n<h2 id=\"requirements\">Requirements<\/h2>\n<ul>\n<li>A server running Ubuntu 18.04 to your system.<\/li>\n<li>A non-root user with sudo privileges.<\/li>\n<\/ul>\n<h2 id=\"install-splunk\">Install Splunk<\/h2>\n<p>Splunk supports a wide range of operating system including, Windows, Linux, FreeBSD, OSX, Solaris, AIX and many more. You can download the latest version of the Splunk from their official website or use the following command:<\/p>\n<p class=\"command\">wget https:\/\/download.splunk.com\/products\/splunk\/releases\/7.1.1\/linux\/splunk-7.1.1-8f0ead9ec3db-linux-2.6-amd64.deb<\/p>\n<p>Once the download is completed, install the downloaded file using the following command:<\/p>\n<p class=\"command\">sudo dpkg -i splunk-7.1.1-8f0ead9ec3db-linux-2.6-amd64.deb<\/p>\n<p>Once the installation completed successfully, you should see the following output:<\/p>\n<pre>(Reading database ... 218552 files and directories currently installed.)&#13;\nPreparing to unpack splunk-7.1.1-8f0ead9ec3db-linux-2.6-amd64.deb ...&#13;\nUnpacking splunk (7.1.1) over (7.1.1) ...&#13;\nSetting up splunk (7.1.1) ...&#13;\ncomplete&#13;\n<\/pre>\n<p>Next, you will need to enable Splunk service to start on boot time. You can do this by running the following command:<\/p>\n<p class=\"command\">sudo \/opt\/splunk\/bin\/splunk enable boot-start<\/p>\n<p>Here, you will need to agree to the License Agreement and provide admin password as below:<\/p>\n<pre>Splunk Software License Agreement 04.24.2018&#13;\n&#13;\nDo you agree with this license? [y\/n]: y&#13;\n&#13;\nThis appears to be your first time running this version of Splunk.&#13;\n&#13;\nAn Admin password must be set before installation proceeds.&#13;\nPassword must contain at least:&#13; * 8 total printable ASCII character(s).&#13;\nPlease enter a new password: &#13;\nPlease confirm new password: &#13;\nCopying '\/opt\/splunk\/etc\/openldap\/ldap.conf.default' to '\/opt\/splunk\/etc\/openldap\/ldap.conf'.&#13;\nGenerating RSA private key, 2048 bit long modulus&#13;\n..................+++&#13;\n..............................................................................+++&#13;\ne is 65537 (0x10001)&#13;\nwriting RSA key&#13;\n&#13;\nGenerating RSA private key, 2048 bit long modulus&#13;\n.............+++&#13;\n...................................+++&#13;\ne is 65537 (0x10001)&#13;\nwriting RSA key&#13;\n&#13;\nMoving '\/opt\/splunk\/share\/splunk\/search_mrsparkle\/modules.new' to '\/opt\/splunk\/share\/splunk\/search_mrsparkle\/modules'.&#13; Adding system startup for \/etc\/init.d\/splunk ...&#13; \/etc\/rc0.d\/K20splunk -&gt; ..\/init.d\/splunk&#13; \/etc\/rc1.d\/K20splunk -&gt; ..\/init.d\/splunk&#13; \/etc\/rc6.d\/K20splunk -&gt; ..\/init.d\/splunk&#13; \/etc\/rc2.d\/S20splunk -&gt; ..\/init.d\/splunk&#13; \/etc\/rc3.d\/S20splunk -&gt; ..\/init.d\/splunk&#13; \/etc\/rc4.d\/S20splunk -&gt; ..\/init.d\/splunk&#13; \/etc\/rc5.d\/S20splunk -&gt; ..\/init.d\/splunk&#13;\nInit script installed at \/etc\/init.d\/splunk.&#13;\nInit script is configured to run at boot.&#13;\n<\/pre>\n<p>Next, start Splunk service using the following command:<\/p>\n<p class=\"command\">sudo service splunk start<\/p>\n<p>You should see the following output:<\/p>\n<pre>Starting splunk server daemon (splunkd)... &#13;\nGenerating a 2048 bit RSA private key&#13;\n............+++&#13;\n............................................................................................................................................+++&#13;\nwriting new private key to 'privKeySecure.pem'&#13;\n-----&#13;\nSignature ok&#13;\nsubject=\/CN=Node3\/O=SplunkUser&#13;\nGetting CA Private Key&#13;\nunable to write 'random state'&#13;\nwriting RSA key&#13;\nDone&#13;\n&#13;\n&#13;\nWaiting for web server at http:\/\/127.0.0.1:8000 to be available........ Done&#13;\n&#13;\n&#13;\nIf you get stuck, we're here to help. &#13;\nLook for answers here: http:\/\/docs.splunk.com&#13;\n&#13;\nThe Splunk web interface is at http:\/\/Node3:8000&#13;\n<\/pre>\n<h2 id=\"access-splunk-web-interface\">Access Splunk Web Interface<\/h2>\n<p>Splunk server is now running and listening on port 8000. Open your web browser and type the URL <strong>http:\/\/your-server-ip:8000<\/strong>, you will be redirected to the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_splunk_on_ubuntu_1804\/big\/page1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-splunk-log-analyzer-on-ubuntu-18-04-lts.png\" alt=\"Splunk Login\" width=\"550\" height=\"282\" title=\"\"><\/a><\/p>\n<p>Here, provide your admin login credentials, then click on the <strong>Sign In button<\/strong>, you should see the Splunk dashboard in the following screen:<\/p>\n<p><a class=\"fancybox\" id=\"img-Page2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_splunk_on_ubuntu_1804\/big\/Page2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-splunk-log-analyzer-on-ubuntu-18-04-lts-1.png\" alt=\"Splunk Dashboard\" width=\"550\" height=\"281\" title=\"\"><\/a><\/p>\n<h2 id=\"links\">Links<\/h2>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-splunk-log-analyzer%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-splunk-log-analyzer-on-ubuntu-18-04-lts-2.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-splunk-log-analyzer%2F&amp;text=How+to+Install+Splunk+Log+Analyzer+on+Ubuntu+18.04+LTS&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-splunk-log-analyzer-on-ubuntu-18-04-lts-3.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-splunk-log-analyzer-on-ubuntu-18-04-lts-4.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fubuntu-splunk-log-analyzer%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/06\/how-to-install-splunk-log-analyzer-on-ubuntu-18-04-lts-5.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Splunk is a powerful log database that can be used for searching, monitoring, and analyzing machine-generated big data through a web-interface. It is a very useful tool for analyzing, exploring and searching data. You can easily index, search, collect and visualize massive data streams in real-time from an application, web server, database, server platform, Cloud-network [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-5125","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/5125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=5125"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/5125\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=5125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=5125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=5125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}