OSCam/en/Monitoring/Splunk
Introduction
What is Splunk
Splunk is an universal tool for analyzing big data like logs, syslogs, files +++
Who created Splunk
Splunk is developed and supported by www.splunk.com OSCam add-ons is developed by me only. It was stared as a project to get some control of the server and the help some other also. There are for sure much more that can be done, but this is a way to help other out there to start using Splunk. I have worked with Splunk on professional basis, but still count my self as medium user of it. Lot of work has been done to index and categorize data coming from the OSCam server.
Licensing
What we set up here is free. Splunk Enterprise will use with license named Free License with the following limits:
- Max 500MB log data pr day. (This is more than you ever need and can easily handle many large OSCam servers)
- No Alert and Monitoring
- No distributed search
- User manager (always logged inn with default user)
- + some other stuff
What can we do with OSCam add-ons for Splunk
The list of what you can do with this endless, but here is some:
- See what channels a user/client request from you.
- See what is requested from a reader/proxy.
- General status panel with various information.
- Error logs (by clients or readers)
- Search logs
- Count status of any events, averages
- View events by at any time/time range
- Manage many servers at once
- Live view
- Historical logs
System requirements
What you need to run Splunk depends on OS you select, but the minimum supported is:
Windows
- 2 GB Ram
- 32/64 bits
- Windows
- Windows Client from Windows 7 and up
- Windows Server from Windows 2003 and up
Non Windows
- 1 GB ram
- 32/64 bits
- Linux
- Solaris
- Mac OS X
Installation
Installing Splunk
To download Splunk, you need an account at www.splunk.com It free, so just create one.
Go to:Products -> Overview -> Splunk® Enterprise -> Free download Select your OS -> Windows, Linux, Solaris, Mac OS
Install the package at your preferred OS. I will explain using Windows here.
Run Splunk
At first run (either bu auto start or go to
localhost:8000 or your_ip:8000)
Splunk will ask you to change password for the admin account. Do so, but you do not need it more than once, since its gone when converting to free license group.
Convert License
I do recommend that you convert Splunk to Free license group now. But if you like, you can try it out with full license for 30 days. But its important you do convert it before 30 days, or you end up in a situation that it will be locked for use for 30 days if it past the 30 day trail.
To convert it do:
- Settings -> Licensing.
- Change license group.
- Free license
- Save
- Restart Now (to activate the new license)
You can no go directly inn to Splunk without been asked for user/password.
Make Splunk accept packed
We need to make Splunk accepting syslog packets on UDP port 514.
- Settings -> Data inputs -> UDP -> New
- Make sure UDP is selected.
- Port:514 (default syslog)
- Next:
- Source Type: Select
- In the dropdown box type: syslog and drag scroll bar down until you find: Syslog (Output produced by many syslog daemons....)
- -> Review
- -> Submit
- Start searching