op5 LogServer Manual |
|
op5 LogServer 3.5 Manual
Copyright © op5 AB, http://www.op5.com. All rights reserved.
Contents
1. PrefaceModern organisations have higher demands to secure their IT environment than just a few years ago - for many reasons:
Virtually every modern computer application logs what happens, and you can not know in advance which information will be important or not. The syslog protocol, an important part of the LogServer architecture, provides a business standard for how to transfer data. LogServer is unique in it's design and flexibility for storing large volumes of data, and accessing archived data is very easy. It is our hope that your organisation will benefit from using LogServer on many levels, and that this manual will answer your questions quickly and to the point. If you have any queries about this manual, please send these to support@op5.com or call +46-31-7740924.
2. Web InterfaceMost operations you perform on your op5 LogServer is done from the web interface, including configuration.The web interface is intuitive, and you will find a clickable question mark near many options, where you can find context-related help. If you need information about a specific option, you should look at context-related help-popups. If you need information about how to solve a specific task, this manual is the right place to look.
2.1 Logging inPoint your web browser to the server you installed LogServer on.
To log in, fill out your user name and password and click the login button.
You should log in as admin and create users and passwords that suit your needs.
2.2 View
This is the first page you get to when you log in. The page is divided into 3 sections.
When you click on View you will see the default 75 last received messages.
To search for a message, simply type your search phrase in the search form box and press enter.
You will then do a search in the full-text search index table in the database.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| column | query | descriptor |
| Severity | sev| severity | (=) |
| Facility | fac| facility | (=) |
| Event ID | event| event_id | (=) |
| eventid | ||
| Src IP | ip| src_ip| source_ip | (=) (:) ( ) |
| sourceip | ||
| Ident | ident | (=) (:) ( ) |
| Host | host | (=) (:) ( ) |
| PID | pid | (=) |
| Message | msg| message | (=) (:) ( ) |
Description of the descriptors:
- = means 'contains'
- : means 'starts with'
- means 'matches regular expression'
For more info about PostgreSQL Regular Expression see
http://www.postgresql.org/docs/8.3/static/functions-matching.html#FUNCTIONS-POSIX-REGEXPPostgreSQL Manual
Examples:
msg="connection"
will search for any message including the string "connection"
sev=(warn info) -(statistics daemon) -msg:Log -ident=sshd
Logs that have severity "warn" or "info",
and do not contain words "statistics" or "daemon" in any field,
and where field "msg" does not begin with "Log",
and that were not generated by "sshd"
host~"192.168.1.(97|158)" -msg~"^(root) CMD"
Match host 192.168.1.97 or 158 and messages not starting with '(root) CMD'
msg~"UserName:\x09([[:alnum:]$_-])*[^$] "
Match msg that contains ``User Name:<tab> username '' and username does not end with $
Available fields: sev, fac, event, ip, ident, host, pid, msg
Severities: emerg(ency), alert, crit(ical), err(or), warn(ing), notice, info, debug
Facilities: kernel, user, mail, daemon, auth, syslog, lpr, news, uucp, cron, authpriv, ftp, ntp, logaudit, logalert, clock2, local0 to local7, mark
2.2.1.2 Query builder
In LogServer 3.2 we intruduced a Query builder function to make it easy for users to build their custom filters.
The Query Builder is bidirectinal since op5 LogServer 3.3, meaning that it will expand your filter's criteria to the correct boxes when selecting a filter.
You can only get "OR" function in Query Builder
Enclose your text with "quotes"
Example: "User Name" "monitoruser"
Press the
located under the Search area to get a dropdown with options.
- To select more than one Severity or Facility, press and hold the Ctrl-key and click to select additional items.
- Enter the criteria you want to include in the search.
- Enter the criteria you want to exclude from the search.
Note: Regular expressions are not allowed in Query Builder.
2.2.1.3 Search criteria
When you create a search filter, you have several criteria to choose from. Some of these apply only to Windows and some only to UNIX.
Severity
Most UNIX daemons log their messages with more than one severity - depending on the message your database server might send a notice message or a critical message - or any of the other available messages.
Facility
This is the category of data. For instance: Your mail server daemons may log only using the mail facility and you will find most log on failures in the auth facility. This field is part of the syslog specification.
Host
The name of the logging host.
Source IP
Displays the IP-adress of the logging host.
Ident
This is normally the name of the logging application.
PID
This is normally the name of the logging application.
Event ID
This is only used by Windows hosts - it is the Event ID field from Windows Event Log.
Message
This is the actual log message. This is the field that is the least well defined. You may want to use this to exclude any messages that clutter your search results.
Full text
Use these fields to specify search critera that should be applied to all fields.
2.2.1.4 Save your search query
The basic concept for using op5 LogServer is a search filter. Similar to any database search
- fill out a number of criteria in the Search area or use the Query builder (1.2.1.2)
- decide if you want to make the filter Global (for everyone) or Local (for yourself)
- type a name for the filter in the Save this search as area
- click Save
The saved filter will be based on the one selected in "Search among''.
2.2.1.5 Search using a saved filter
To be able to extend your search you can use an existing filter (saved search query).
- Select the Filter you want to search within
- Enter your search criteria. You can use a simple full text search, the query language or the query builder.
- Press Search Now
The search will now use the criteria in the Filter and the criteria you typed in the Search field.
Since the filters are organised in a hierarchical data model (a tree-like structure) you can create multiple filters in multiple levels based on the same parent filter. Filters created from filters will become dependent on the filter out of which they were created.
2.2.1.6 Manage filters
The user management in LogServer supports making filters Global or Private (My filters) and assigning special permissions to the filters.
Delete filter
To delete a filter, select it from the filter dropdown menu and press
Note: If you want to remove a filter that has other filters based on it you must first delete the "sub filters''. Otherwise the "sub filters'' are left unusable.
Edit filter
To view/edit the searh criteria of an existing filter, select it from the filter dropdown menu and press
. You can now edit the search criteria directly in the search box or by using the Query builder.
Note: A user can't edit Global filters unless they are member of the 'Filter administrators' group.
Global/Private filters
If you are member of 'Filter administrators' group you can view how your filter looks like and also change/assing permission to filters.
startsectionsubparagraph40ex-3.25ex plus -1ex minus -0.2ex1.5ex plus 0.2exGlobal filters
To make a filter Global you mark it under My filters and press the
- Available Users/Groups: Users/Groups you can grant permission to use the selected filter.
- Current Users/Groups: Users/Groups that have permission to use the selected filter.
Note: Making a filter global will also make all its parent filters global too.
Note: When you create/manage a filter, you need to decide which users should be able to use it. Default is none.
Note: If you want the filter to be visible for all users, use the 'All' group.
startsectionsubparagraph40ex-3.25ex plus -1ex minus -0.2ex1.5ex plus 0.2exMy filters
To make a filter My filters (Private) you mark it under Global and press the
. Since it's a private filter no permissions can be applied.
Note: Making a filter private will make all its child filters private as well.
Note: Private filters are private, Filter administrators can't view your private filters.
2.2.1.7 Auto refresh
By clicking on the Down arrow on the Search now button will allow you to set a refresh period of the page. You can set it between 30 and 300 seconds.The Auto refresh works like the UNIX program tail, showing the last x messages2.1.
To cancel a refresh setting, click on cancel
2.2.1.8 CSV export
You can export the retrived data in CSV format by clicking on
The format is a | (pipe) separated list.
2.2.2 Timeline browsing
You can move back and forth in time by using the timeline. If you go back in time and lack the data in the database you can easily import it (see section 1.2.2.3).
2.2.2.1 Select date
To be able to browse/search on a specific day/hour you have to select it on the timeline.
- Select the month
- Select the date
- Select the hour you wish to display from.
The GUI will now display the x messages2.2 matching the search criteria within the given time.
Messages are by default searched from the time you selected until the last message in database.
Example:
If you select 2008-07-24 hour 18, you will be able to search on all messages between 18:00 and the last message imported into the database.
Note: no-day-limit or unlimited search mode is deprecated, this is now the normal behavior.
2.2.2.2 Move in time
To move in time you click the small red arrows, they will move in time and display the X previous/following messages2.3 matching the time in the timeline.
2.2.2.3 Import archived data
Data is kept in the database only for a limited amount of time,2.4 so that archived data does not occupy uncompressed disk space and slow down your searches.
However, the archived data is not discarded until after a much longer time. It is merely compressed and archived for possible future access.
When you have started an import it will continue in the background so you can always browse your messages.
To look into very old data:
- Select the date you want to import
- Choose hour/day/month to import
The import process will start to import the logs that correnspond to your selection. A scrollbox will show the status of the import.
- A green hour number in the timeline indicate that it's beeing imported.
- A red hour number in the timeline indicate that something went wrong with the import.
- A black hour number in the timeline indicate that the import is done, the date will become white indicating that you have logs on that date.
Note: The import can take alot of time depending of the amount of logs in your archive.
2.2.3 Search result
2.2.3.1 Modify view settings
You can change display settings. These settings will be resetted when logging out.
Number of rows returned
To select how many rows of data you want to be displayed.
- Click on
- Select the number of rows you want to be displayed.
EventID
In the search result ther is an column called EventID. If the log row contains a MS Windows Event the eventid is displayed as a link directly to www.eventids.net.
If you click on the link you will be sent to the page for the eventid found in the log row.
Columns to display
To hide/unhide columns on the page.
- Click on
- Check/Uncheck the field(s) you want to hide/unhide
2.3 Reports
The reports section of LogServer has two main functions:
- Auto reports: Does scheduled searches and sends them to a list of users via e-mail or save them in a folder on your file server.
- Summary reports: Gives you top 10 hosts based on hits for each filter you have access to, and create graph (message per minute) for global/private filters.
2.3.1 Creating Auto reports
If you wish to create an Auto report - for instance you might want a log of failed password login attempts sent to you weekly - you should start by creating the appropriate search filter. See section 1.2.1.4 for information on how to create filters.
If you have your search filter ready and wish to use it to create a report click REPORTS in the top menu and click Add new report.
- Create the appropriate search filter
- Click REPORTS in the top menu
- Click Create new report
- Fill out the parameters - see 1.3.2
2.3.2 Auto Report Parameters
2.3.2.1 Report Name
This is the name of the report you are creating. Choose a name that is descriptive - not only for you but also for your colleagues. Sometimes it is a good idea to use your own name as part of the report, for future reference.
2.3.2.2 Description
Brief description of your report.
2.3.2.3 Search Filter
Choose your search filter from the menu.
2.3.2.4 Recipient Type
- Choose Email if you want the report to be sent via e-mail.
- Choose Path if you want the report to be created on a file server. You need to mount the file share on your LogServer server in order to have a local path.2.5
2.3.2.5 Email Recipients or File Path
Enter the email addresses that should receive the report (separated with comma ','), or the path in which it should be saved.
2.3.2.6 Generating Interval
Choose - Every hour, Every 6 hours, Every 12 hours, Daily, Weekly or Monthly - how often the report should be generated.Click ''Save`` when you are done filling out the fields and then your report will be created.
2.3.3 Manage an Auto Report
When you have created your report, it will show up every time you click REPORTS in the page top menu.
2.3.3.1 Edit
To Edit a report- Click on the
to the right of the auto report, or double click on the row in the list.
- Edit the fields you want to change and click on ''Save``.
2.3.3.2 Deleting
To Delete a report- Click on the
to the right of the report
- Click OK on the popup
2.3.3.3 Send now
You can force a send of the selected report by clicking
2.3.4 Summary reports
The global and private summary reports is used to:
- print graphs over how many logs matches a filter
- display statistics over top 10 hosts found with a filter
To be able to add or delete a report your user have to belong to the group 'Filter administrators'.
To view a report your user only have to belong to the 'Summary viewers' group.
2.3.5 Creating global or private summary report
If you wish to create a global or private summary report - for instance you might want to view the number of hits for a filter matching incorrect ssh connections - you should start by creating the appropriate search filter. See section 1.2.1.4 for information on how to create filters.If you have your search filter ready and wish to use it to create a report click REPORTS in the top menu and click Add new report.
Summary report - global
When you create global filter, summary reports for the global filter will be create automaticaly.
However if you delete your contact or upgrade you might have to create one manually.
Summary report - private
- Choose user that the report should belong to.
- Choose what private filter you like to base the report on.
- Click on "Save" and your report is created.
Note: When you have added your report it will take maximum 5 minutes time to untill any graphs are created.
2.3.6 Manage a Global or Private summary Report
When you have created your report, it will show up every time you click REPORTS in the page top menu and then Global or Private summary reports flap.
2.3.6.1 Deleting
To Delete a report- Click on the
to the right of the report
- Click OK on the popup
2.3.6.2 Viewing
To view a report click on theYou will then see a view like this:
The view is devided in to two parts:
- a graph displaying number of filter matches
- a Top 10 logging hosts table with number of matches per host.
You can "zoom" in on the graph by select what timeframe you want to look at by pressing the links under the graph image.
2.4 Settings
LogServer stores the logged data in three different locations:
- A local database for normal web access of latest data
- Compressed archive for longer term storage on local file system
- Compressed archive on remote file server for storage up to many years2.6
We recommend that you use op5 Monitor to check the available disk space on all disks used to store log data, so that you receive an alert if disk space is insufficient.
The picture below shows how the settings page looks like. Each option will be described in the next sections.
2.4.0.1 Database Storage
How long you wish to keep data in the database - the Rotate Database After setting - depends on how much data you log. Most organisations are happy with the default setting of 5 days, but if you log very much data you may need to store it for a shorter amount of time in regards to performance and disk space used.
Note: Old values will be converted if you upgrade.
2.4.0.2 Local Storage
The Local Storage Path is a setting you normally do not need to touch, unless you wish to save it on another storage unit.
The Keep archive in local storage setting with it's default of 5 days regulates for how long the data will be stored on disk on the LogServer machine. After this period of time, data will be stored only on the remote file server - still accessible but the access will be slower.
The issue is disk space; You would normally want to save data for as long as possible, without filling up the local hard disk. Keep in mind that since the amount of logged data per day often increases over time, you do need a lot of free disk space for the future.
Note: Old values will be converted if you upgrade.
2.4.0.3 Remote Storage
You should mount a remote file server in the file system on your LogServer server. You can read more about this in section mount
.
When you have done so, set the Remote Storage Path to the mount point - you can use /opt/logserver/remote or any other path you choose.
If you wish to impose a time limit on the remote storage, you can do so with the setting Keep Archive in Remote Storage.
Note: During upgrade Forever will be converted to 999 Months. Note2: 999 Months is maximum limit.
2.4.1 Enable fulltext index
In some environments full text indexing of log messages is not really a good thing.
For example if you have a lot of log messages from a firewall that contains a lot of "non-words'', binary data dumps and such.
Log messages like that can hog your CPU and affect the responsiveness of the op5 LogServer system.
Note: If you turn off the full text index, queries using full text syntax will still work but a bit slower.
2.4.2 The monitor host
Here you can define the hostname of your monitor server that will be used in the links
in the host field in the search result.
2.4.3 Use Ninja
Check this check box to have the links in the host field in the search result pointing to the Ninja GUI instead of
the standard Monitor GUI.
2.4.4 Host information page
If you like to have an custom URL, instead of the standard URL to Monitor for the
link in the host field in the search result, you can define it here.
Note: You still need to define the hostname in the text field The monitor host.
This can be any URL and to have the hostname added to the URL just use a host like in this example:
/index.php?host=host
2.4.5 Import filter
You can import already exported filters here. Just click on Browse to chose the file. Then click on Import to import the filters.
Note: Every imported filter will be set as global with default permissions.
2.4.6 Export filters
Chose the filters you like to export and ''move`` them over from Available filters to Selected filters.
Click on Export to save the XML file containing the filters. You can then import them via the Import filters
section in Settings.
When exporting a filter that depends on an other filter both of them will be exported to make sure dependencies are untouched.
Note: Both global and private filters can be exported and no permission settings will be included.
2.5 Users and Groups
To access Users and Groups, you have to be logged on as a user with admin privileges. If you have user administrator privileges, you will see a link Users and Groups in the main menu at the top.
2.5.1 User Management
2.5.1.1 Add User
To add a new user click on
- Fill in Username
- Real Name
- Password
- Repeat password
- Select the group(s) you want the user to belong to
- Select default filter to be used for the user
- And press
2.5.1.2 Edit User
- To edit a user, click on
or dubbleclick on the row of the user.
2.5.1.3 Delete User
- To delete a user, click on
and answer 'OK' on the popup.
2.5.1.4 Changing password as user
When logged in to the LogServer you will see your username and a logout button in the right corner.
Pressing the username will popup a ''Update password`` dialogue.
- Enter your old password
- Type in your new password
- Verify new password by re-typing it
2.5.2 Group Management
As default all new created users can see all log messages. To have it the oposite way you should remove the group all from the filter all. Then you create groups for different level of users and set the premissions on the filters for the groups you created.
2.5.2.1 Default Groups
op5 LogServer comes with a couple of default groups that can't be deleted.
| Group | Description |
| Filter administrators | Create/Manage Global filters |
| Create/Manage Summary reports | |
| Import administrators | Import old logs from archive into DB |
| Report administrators | Create/Manage Auto reports |
| No access to Summary reports | |
| Settings administrators | Access/Change Settings |
| User administrators | Create/Manage Users/Groups |
| Summary viewers | View Summary Reports |
2.5.2.2 Add Group
To add a new group click on
- Fill in Name
- Description
- Select and move the users you will assign/remove to this group
- And press
2.5.2.3 Edit Group
- To edit a group, click on
or dubbleclick on the row of the group.
2.5.2.4 Delete Group
- To delete a group, click on
and answer 'OK' on the popup.
2.5.3 Audit tracking
Since version 3.5.0 of op5 LogServer we have included audit tracking to make sure an administrator can see what the users have been doing. The following actions are logged:- Password and settings changes
- Logging in and out
- Creating, editing, deleting and viewing of auto reports
- Adding, editing, deleting and viewing users and groups
- Creating, editing, deleting and viewing of summary reports
- Changing filter permissions
- Importing logs
- Creating, editing and deleting filters
- Making filters global/private and viewing/chaning permissons on filters.
- Importing/exporting filters
- Exporting result sets to CSV.
Everthing is logged via syslog so the logs will show up in the GUI.
Two filters are added to make it easy to either see or hide the audit messages:
| Filtername | Description |
|---|---|
| audit | Shows all audit messages - usefull for admins. |
| all except audit | Shows everything execcept for audit messages. This is useful as a base for other filters, so that users don't see audit messages |
3. Configuring Clients
3.1 Windows Machines
To make a Windows computer send their logs to LogServer you have to download the Windows Syslog Agent from http://www.op5.com/supporthttp://www.op5.com/support and install it.Windows Syslog Agent sends the Windows Event Log content to the IP address of your op5 LogServer, and can optionally send plain text log files too - for applications that keep their own logs.
For detailed information on how to set up and use Windows Syslog Agent, please read op5 SyslogAgent User Manual available from http://http://www.op5.com/supporthttp://www.op5.com/support
3.2 UNIX Machines
A UNIX machine has built-in support for syslog and hence you do not need to install any extra software.
3.2.1 syslogd
On most systems, you will find a config file called /etc/syslog.conf - this is where you enter the host name or IP address of your op5 LogServer host.If your op5 LogServer host is on IP address 172.16.32.64, and you want to forward all facilities to it, append the following to /etc/syslog.conf and restart your syslog daemon:
*.* @172.16.32.64some systems do not understand *.* - if this is the case you have to enter all facilities separately.
auth.* @172.16.32.64 authpriv.* @172.16.32.64 cron.* @172.16.32.64 daemon.* @172.16.32.64 ftp.* @172.16.32.64 kern.* @172.16.32.64 lpr.* @172.16.32.64 mail.* @172.16.32.64 mark.* @172.16.32.64 news.* @172.16.32.64 security.* @172.16.32.64 syslog.* @172.16.32.64 user.* @172.16.32.64 uucp.* @172.16.32.64 local0.* @172.16.32.64 local1.* @172.16.32.64 local2.* @172.16.32.64 local3.* @172.16.32.64 local4.* @172.16.32.64 local5.* @172.16.32.64 local6.* @172.16.32.64 local7.* @172.16.32.64Note that on some system, notably Solaris, the blank between the facility and the receiving host has to be made up of tabs, not spaces.
For details on how to configure syslog.conf, do a
man syslog.confon the machine you are configuring.
3.2.2 syslog-ng
More and more clients uses syslog-ng for sending syslog messages to a loghost.If you use syslog-ng you can benefit from the stability to use tcp connection instead of the standard udp.
Sample /etc/syslog-ng/syslog-ng.conf to setup logging to loghost.
# all known message sources
source s_all {
# message generated by Syslog-NG
internal();
# standard Linux log source (this is the default place for the syslog()
# function to send logs to)
unix-stream("/dev/log");
# messages from the kernel
file("/proc/kmsg" log_prefix("kernel: "));
};
destination d_loghost {
tcp("172.16.32.64" port(514));
};
# send everything to loghost
log {
source(s_all);
destination(d_loghost);
};
3.2.3 Sending Text Files to LogServer
Some applications do not send their logs to syslog, but store them in a file on disk.Most applications can be configured to use syslog, and changing the configuration of those applications should be your first hand choice.
Another option is using tail and logger to read the log file, and send appended lines to syslog. This command will read /var/log/myapp.log and send it to syslog as facility daemon and severity info.
tail -f /var/log/myapp.log | logger -p daemon.info
You can use a command like the one above for your application, and make sure it is executed on reboot - on many systems this can be done by placing the command in /etc/rc.local
3.3 Other Equipment
Many devices - from broadband firewalls for the home to office printers - can send their log files to a syslog server.Look at the manual for your respective devices for information on how to fill out the syslog server.
4. op5 LogServer Technology
4.1 The Syslog Protocol and Implementations
Syslog was originally written by Eric Allman as part of his application sendmail4.1 but turned out to be so useful that it was turned into a project of it's own in the 1980:s.Syslog is not only a protocol, but it also refers to various syslog implementations such as the local syslog daemon that takes care of local logging on any UNIX computer.
In 2001, RFC 31644.2 was published as an effort to unify syslog implementations.
4.1.1 Usage
On UNIX, most applications send their logs to the syslog process running on the same machine. This process then either stores the messages locally - in /var/log - or sends them to a syslog server for central storage.All logging machines send their log data using TCP/IP to port 514 on the receiving log server. Typically syslog uses UDP, but modern implementations such as op5 LogServer also support TCP. Most log servers simply store this data in text files, and retrieving historical data is a manual procedure and often impossible - unlike op5 LogServer where you have an easy-to-use graphical interface with easy import from archives.
4.2 op5 LogServer components
Syslog-ng
Syslog-ng is the component that receives and stores syslog data.
If you want to know more about syslog-ng, look at
http://www.balabit.com/network-security/syslog-ng/http://www.balabit.com/network-security/syslog-ng/
PostgreSQL
Since op5 LogServer 3.0 all data is stored in a PostgreSQL database for a limited amount of time, for easy access from the web interface.
Apache Web Server with PHP
The web interface is written in PHP and served by an apache web server.
4.3 LogServer Storage
LogServer has three storage facilities. Data is written to all three of these upon being received - however it is deleted according to separate settings.
4.3.1 The PostgreSQL database
All messages are initially stored in the PostgreSQL database. This is used as the default source of information for the web interface.The data in the PostgreSQL database is deleted after a configured amount of time. See chapter 1.4.0.3 for more information.
4.3.2 Local Storage
Data is also bzipped and saved to disk, for future reference as archived data. When you restore archived data, it is fetched from the local storage if it is possible, otherwise it is fetched from the remote storage.The data in the local storage is deleted after a configured amount of time. See chapter 1.4.0.4 for more information.
4.3.3 Remote Storage
The remote storage has the same information as the local storage, but it is meant for saving data over a longer period of time.Normally, this is located on a file server, where it is also backed up.
The data in the remote storage is deleted after a configured amount of time - see chapter 1.4.0.5 for more information.
A. Installation
A.1 Basic Installation
If you have bought an op5 hardware appliance, you should install op5 System on it.Installation of op5 System, any op5 Hardware and basic configuration of the system, such as IP address and SMTP relay server, is covered in op5 Installation and Configuration Customer Guide where you also find a list of recommended helper utilities for your administrators desktop.
If you have not received op5 Installation and Configuration Customer Guide, please notify http://www.op5.com/support/op5 Support.
A.2 Installing LogServer
LogServer is delivered as tar.gz files to be installed onto op5 System, or the official CentOS or RedHat Enterprise Linux 5. See http://www.op5.com/support/www.op5.com/support/ for hardware requirements.If you install it on op5 System and have a support agreement, the support includes not only LogServer but also op5 System. If you use another vendor for your operating system, please contact their support.
A.2.1 Obtaining tar.gz files
Download the tar.gz files from our Support Website,
http://www.op5.com/support/http://www.op5.com/support using your user name and password.
If you have not received a user name and password, please notify op5 Support.
When you have downloaded the files; copy them onto your op5 server root directory (/root)A.1, then run the command
cd /root
tar xvzf op5-logserver*.tar.gz
cd logserver*
./install.sh
This will install LogServer. Then you can point your web browser to the machine and log on to your newly installed op5 LogServer...
A.3 Updating
If you run your LogServer on op5 System, you can update all installed packages by logging on to your server via SSH and then type:
yum updateA.2
For alternative ways of updating, such as offline updates or other, please contact op5 SupportA.3 or look at the op5 System documentation.
A.4 Upgrading
Attention If you are going to upgrade from op5 LogServer 2.x you have do it in the following steps:
- upgrade to op5 LogServer 3.0
- then upgrade to op5 LogServer 3.5.0
When migrating from op5 LogServer 2.x there will be a migration process during installation/updating.
The following will be migrated by default:
- Users/Passwords
- Settings for ArchiveA.4
- Filters
To Upgrade your system from a 2.x release you follow the steps on obtaining Obtaining tar.gz files, and follow the on-screen instructions.
During the last step on the upgrade the installation ask if you want to convert your archive to the new format, this will take alot of time if you have a large archive.
You can always start the convert process after the installation is done by executing
/opt/logserver/migrate2to3/convert.sh <src_dir> <dest_dir>
<src_dir> - your old 2.x logs are.
<dest_dir> - the local or remote archive location.
B. Using Remote Storage
When you use remote storage, you have to create a folder and use it as a mount point by defining it in the file /etc/fstab:
LABEL=/ / ext3 data=writeback,noatime 1 1 LABEL=/boot /boot ext3 data=writeback,noatime 1 2 devpts /dev/pts devpts gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 tmpfs /tmp tmpfs nodev,nosuid,noatime 0 0 LABEL=SWAP-sda5 swap swap defaults 0 0
Normally, everything in /etc/fstab is mounted on system startup. If you want to mount everything after editing, you can issue the command
mount -a
and if you want to check what is currently mounted, you can issue the command:
df
and mount and unmount using the commands mount and umount
B.1 Mounting a Windows Fileserver
Add a line to /etc/fstab where the first column, the device, is the Windows path for the share you want to mount, using forward slashes instead of backslashes.The second column should be a path that exists where you want to mount it. If you would like to mount it on /var/remotearchive you can create the folder by issuing the command
mkdir -p /var/remotearchive
The third column should say cifs and the fourth, fifth and sixth should be defaults, 0 and 0 respectively.
//192.168.0.3/logs /opt/logserver/remote cifs defaults 0 0
B.2 Mounting an NFS share
If you have a UNIX environment, it is quite common to have NFS shares published from the file server using /etc/exports and then mounted on one or several client systems.This chapter only describes NFS since it is the most common file server system, but if you are using a more advanced file server system - such as AFS or Coda - you can mount these just as on any other Linux system.
Add a line to /etc/fstab where the first column is the NFS server followed by a : and the path on the file server.
Let the second column be an existing path where you want the NFS share to be mounted - for this example /var/remotearchive
Let the third column be nodev,nosuid and the forth and fifth columns both be 0.
//192.168.0.3/exports/logs /opt/logserver/remote nfs nodev,nosuid 0 0
C. Workflow
Workflow of op5 LogServer.
C.1 Connector
- It's a Daemon (op5logserver-loader)
- Runs two times/minute
- Read logs from spool directory (/var/log/oslogd/spool)
- If they contain illegal chars, move to Error (/var/log/oslogd/error) and stop.
- Move logs to temporary archive (/var/log/oslogd/archive) and
- Insert logs to database
C.2 Rotate
- It's a cronjob
- Runs every hour at xx.30 and put logs from temporary archive to local and remote archives
- Runs every hour checks database and local archive for old logs and rotate (configured in settings menu)
- Runs every day, checks remote archive for old logs and rotate (configured in settings menu)
D. Advanced DB Management
Original postgresql.conf file is tuned to run on low RAM mashines ( < 3Gb RAM)If you have a server with more than 3GB of RAM you should change the postgresql configuration to a file with larger memory settings.
- Stop PostgreSQL Service
- replace /var/lib/pgsql/data/postgresql.conf
- with /opt/logserver/postgresql-config/postgresql.conf
- Start PostgreSQL Service
Footnotes
- ... messages2.1
- Depending of the user setting, see modify view settings 1.2.3.1
- ... messages2.2
- Depending of the user setting see modify view settings 1.2.3.1
- ... messages2.3
- Depending on the user settings, see modify view settings 1.2.3.1
- ... time,2.4
- See section 1.4 for more information
- ... path.2.5
- See section mount for information about mounting.
- ... years2.6
- The limit of the remote storage is only in amount of disk space available on the file server.
- ... sendmail4.1
- sendmail was the de-facto standard email server for two decades.
- ... 31644.2
- Available at http://tools.ietf.org/html/rfc3164http://tools.ietf.org/html/rfc3164
- ... (/root)A.1
- If you use Macintosh or UNIX, you can copy files to your server using scp. If you use Windows, you can use WinSCP.
- ... updateA.2
- you can't update from 2.x to 3.x with yum update, but once 3.x is installed you can update your system.
- ... SupportA.3
- op5 Support can be reached at support@op5.com or at +46-31-7740924
- ... ArchiveA.4
- Keep in remote storage Forever will be converted to 999 months.
