Installing Splunk?

Installing Splunk?

  • Navigate to https://www.splunk.com
  • Sign up for a free account on Splunk
  • Login
  • Click on "FREE SPLUNK"
  • Select "Splunk Enterprise"
  • Select the OS on which you want to install.
  • Download the package.




In my case I will in installing it on one of the AWS instance.

So I will be choosing Linux 64 Bit .rpm.

[root@ip ~]# ls -lrt
-rw-r--r-- 1 root root 345022297 Feb 28 07:14 splunk-7.2.4.2-fb30470262e3-linux-2.6-x86_64.rpm

Here is my file splunk-7.2.4.2-fb30470262e3-linux-2.6-x86_64.rpm.
  • Create a user called splunk or whatever you want.
  • Change its password.
  • Give it sudo privileges.
  • Install the rpm which we downloaded.
 [splunk@ip opt]$ sudo rpm -ivh splunk-7.2.4.2-fb30470262e3-linux-2.6-x86_64.rpm
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.
[sudo] password for splunk:
warning: splunk-7.2.4.2-fb30470262e3-linux-2.6-x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID b3cd4420: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:splunk-7.2.4.2-fb30470262e3      ################################# [100%]
complete
[splunk@ip opt]$


Once its installed, go to /opt/splunk/bin and start your splunk daemon.
  • Note: Splunk web works on port number 8000
If you are starting splunk for the first time:
  • It will ask you to accept the license agreement.
  • It will ask you to create a user and set a password for it.
[splunk@ip bin]$ ./splunk start
Splunk> Take the sh out of IT.
Checking prerequisites...
        Checking http port [8000]: open
        Checking mgmt port [8089]: open
        Checking appserver port [127.0.0.1:8065]: open
        Checking kvstore port [8191]: open
        Checking configuration...  Done.
        Checking critical directories...        Done
        Checking indexes...
                Validated: _audit _internal _introspection _telemetry _thefishbucket history main summary
        Done
        Checking filesystem compatibility...  Done
        Checking conf files for problems...
        Done
        Checking default conf files for edits...
        Validating installed files against hashes from '/opt/splunk/splunk-7.2.4.2-fb30470262e3-linux-2.6-x86_64-manifest'
        All installed files intact.
        Done
All preliminary checks passed.
Starting splunk server daemon (splunkd)...
Done [  OK  ]
Waiting for web server at http://127.0.0.1:8000 to be available... Done
If you get stuck, we're here to help.
Look for answers here: http://docs.splunk.com
The Splunk web interface is at http://ip:8000
[splunk@ip bin]$
  • Navigate to your http://YOUR_IP:8000 to login to splunk.







  • Enter the credentials which you created while starting the splunk for the first time.
  • Once your authentication is successful, you will see something like this:

Comments

Popular posts from this blog

#3 Splunk sub(Commands) [eval, round, trim, stats, ceil, exact, floor, tostring]

#6 Splunk sub(Commands) [fields, rename, replace, table, transaction]

#2 Splunk sub(Commands) [eval, trim, chart, showperc, stats, avg]