From Splunk Wiki
Review by Israel Torres Introduction avast! Mac Edition is an Antivirus software for Mac. The software offers the following features: On-Access Scanning User friendly interface Automatic updates Integrated email protection PowerPC and Intel supported Simple Installation This software is not free, however they offer a free 60 day trial version to download from their website. Officially Avast Antivirus 2018 is compatible with Windows 10 as well with both Windows 8 and Windows 8.1. However, some users may have issues with running Avast on the latest Windows. This article covers the most known ones, as well as solutions for fixing them.
This tutorial shows how to configure Mac OS X to forward syslog events to a remote server.
The following configuration steps were tested and validated on a MacBook Pro running Mac OS X 10.6.2 (Snow Leopard).
Background
Mac OS X Console.app (Applications - Utilities - Console.app) is the standard interface to visualize all events registered by the operating system. It is simple yet functional, but not very friendly on displaying the entries and actually finding some useful information.
Splunk has a Mac OS X version that allows for a better and more complete monitoring of the system and syslog events, it can also be installed and configured as a forwarder to your central monitoring server. But it doesn’t need to be installed for just monitoring syslog generated events.
It is worth mentioning that in order to capture events forwarded by Mac OS X (or any other syslog forwarder, actually) you have to configure the Splunk server to:
(a.) receive data inputs on UDP port 514, and
(b.) allow incoming traffic through this port on all firewalls in place between the Mac OS X and the Splunk server - including the Windows Firewall, if that’s the case.
Its also worth noting that Mac OS X will simple forward all syslog data as a single source, not separating data by log file like the Universal Forwarder does.
Configuring the Mac OS X Syslogd
The next steps are to be executed in a Terminal window, the Mac OS X command line interface. The steps to configure the syslog forwarding are:
1. Open a Terminal window:Applications - Utilities - Terminal, or by using the Spotlight (shortcut: command+space > Terminal)
2. Before touching anything, make a backup copy of the syslog configuration file (syslogd.conf) into the /tmp folder:
3. Open the configuration file on your favorite editor (in this case, we’re using vi):
Use the ’sudo’ command to execute vi with ‘root’ privileges, otherwise you won’t be able to edit the file. Enter the password for the administrator account you are currently logged in as to continue.
4. Insert the following line anywhere in your syslogd.conf file, replacing the IP address 192.168.1.12 with the IP address of your Splunk server’s network interface.
Type ‘i’ in vi to enter the insert mode (text entry), then add the line above anywhere in the file.
‘’’IMPORTANT:’’’ The selector and action fields (see below) are separated by TABs. Do not use spaces.
The syslogd.conf file consists of lines with two fields: the selector field which specifies the types of messages and priorities to which the line applies, and an action field which specifies the action to be taken if a message syslogd receives matches the selection criteria.
If you would like to forward your syslog output on a different port to the standard 514, you can do this by specifying a specific port for your destination; e.g.
results in your syslog data being forwarded to port 5140 instead of the usual port 514.
The Selectors function are encoded as a Facility.Level. The line above is basically telling the Mac OS X syslog daemon to forward a copy of all (*.*) events to the syslog server listening on the IP address 192.168.1.12. If you don’t want to send all events, you can filter them out by setting a different level - for instance, you can replace the ‘*.*’ with ‘*.notice’. Check out the syslogd.conf and the syslog manual pages for all the options.
5. Save and Exit:Press ‘ESC’ to exit insert mode, and save the file by typing ’:wq <enter>’.If you don’t want to save it now, type ’:q!‘ to exit vi without saving and start over.
6. Restart the ‘syslogd’ service:But before doing so, check if it’s running by typing:
The following commands restart the service. Enter your password one more time if necessary.
Check if the service was really shut down and restarted by typing the same command again. The counter should have been reset and the PID (5070 in the example above) should be a different one.
Done.
You can use ’tcpdump’ to verify that the events are being forwarded to the remote server. Use the command ’ifconfig’ to get the name of the Mac OS X network interface connected to the same IP network segment of the Splunk server and use it as a filter for ’tcpdump’. In this case, the interface name is ‘en1’:
To log an event - open a new Terminal window on Mac OS X and use the ’logger’ command.
If tcpdump doesn't report the Testing message, first double check the tcpdump arguments then review the configuration and check if there is connectivity between the Mac OS X station and the Splunk server.
Lastly, check that UDP/514 traffic is allowed through any firewalls.
Worst case, restore your backup copy from the /tmp folder and repeat the process.
What are Linux log files
Log files are a set of records that Linux maintains for the administrators to keep track of important events. They contain messages about the server, including the kernel, services and applications running on it.
Linux provides a centralized repository of log files that can be located under the /var/log directory.
The log files generated in a Linux environment can typically be classified into four different categories:
- Application Logs
- Event Logs
- Service Logs
- System Logs
Why monitor Linux log files
Log management is an integral part of any server administrator’s responsibility.
By monitoring Linux log files, you can gain detailed insight on server performance, security, error messages and underlying issues by. If you want to take a proactive vs. a reactive approach to server management, regular log file analysis is 100% required.
In short, log files allow you to anticipate upcoming issues before they actually occur.
Which Linux log files to monitor
Monitoring and analyzing all of them can be a challenging task.
The sheer volume of logs can sometimes make it frustrating just to drill down and find the right file that contains the desired information.
To make it a little easier for you, we will introduce you to some of the most critical Linux log files that you must be monitoring.
/var/log/messages
What’s logged here?:
- This log file contains generic system activity logs.
- It is mainly used to store informational and non-critical system messages.
- In Debian-based systems, /var/log/syslog directory serves the same purpose.
How can I use these logs?:
- Here you can track non-kernel boot errors, application-related service errors and the messages that are logged during system startup.
- This is the first log file that the Linux administrators should check if something goes wrong.
- For example, you are facing some issues with the sound card. To check if something went wrong during the system startup process, you can have a look at the messages stored in this log file.
/var/log/auth.log
What’s logged here?
- All authentication related events in Debian and Ubuntu server are logged here.
- If you’re looking for anything involving the user authorization mechanism, you can find it in this log file.
How can I use these logs?:
Suspect that there might have been a security breach in your server? Notice a suspicious javascript file where it shouldn’t be? If so, then find this log file asap!
- Investigate failed login attempts
- Investigate brute-force attacks and other vulnerabilities related to user authorization mechanism.
/var/log/secure
What’s logged here?
RedHat and CentOS based systems use this log file instead of /var/log/auth.log.
- It is mainly used to track the usage of authorization systems.
- It stores all security related messages including authentication failures.
- It also tracks sudo logins, SSH logins and other errors logged by system security services daemon.
How can I use these logs?:
- All user authentication events are logged here.
- This log file can provide detailed insight about unauthorized or failed login attempts
- Can be very useful to detect possible hacking attempts.
- It also stores information about successful logins and tracks the activities of valid users.
/var/log/boot.log
What’s logged here?
- The system initialization script, /etc/init.d/bootmisc.sh, sends all bootup messages to this log file
- This is the repository of booting related information and messages logged during system startup process.
How can I use these logs?:
- You should analyze this log file to investigate issues related to improper shutdown, unplanned reboots or booting failures.
- Can also be useful to determine the duration of system downtime caused by an unexpected shutdown.
/var/log/dmesg
What’s logged here?
- This log file contains Kernel ring buffer messages.
- Information related to hardware devices and their drivers are logged here.
- As the kernel detects physical hardware devices associated with the server during the booting process, it captures the device status, hardware errors and other generic messages.
How can I use these logs?:
- This log file is useful for dedicated server customers mostly.
- If a certain hardware is functioning improperly or not getting detected, then you can rely on this log file to troubleshoot the issue.
- Or, you can purchase a managed server from us and we’ll monitor it for you.
/var/log/kern.log
What’s logged here?
This is a very important log file as it contains information logged by the kernel.
How can I use these logs?:
- Perfect for troubleshooting kernel related errors and warnings.
- Kernel logs can be helpful to troubleshoot a custom-built kernel.
- Can also come handy in debugging hardware and connectivity issues.
/var/log/faillog
What’s logged here?
This file contains information on failed login attempts.
How can I use these logs?:
It can be a useful log file to find out any attempted security breaches involving username/password hacking and brute-force attacks.
/var/log/cron
What’s logged here?
This log file records information on cron jobs.
How can I use these logs
- Whenever a cron job runs, this log file records all relevant information including successful execution and error messages in case of failures.
- If you’re having problems with your scheduled cron, you need to check out this log file.
/var/log/yum.log
What’s logged here?
It contains the information that is logged when a new package is installed using the yum command.
How can I use these logs?:
- Track the installation of system components and software packages.
- Check the messages logged here to see whether a package was correctly installed or not.
- Helps you troubleshoot issues related to software installations.
Suppose your server is behaving unusually and you suspect a recently installed software package to be the root cause for this issue. In such cases, you can check this log file to find out the packages that were installed recently and identify the malfunctioning program.
/var/log/maillog or /var/log/mail.log
What’s logged here?
All mail server related logs are stored here.
How can I use these logs?
- Find information about postfix, smtpd, MailScanner, SpamAssassain or any other email related services running on the mail server.
- Track all the emails that were sent or received during a particular period
- Investigate failed mail delivery issues.
- Get information about possible spamming attempts blocked by the mail server.
- Trace the origin of an incoming email by scrutinizing this log file.
var/log/httpd/
What’s logged here?
- This directory contains the logs recorded by the Apache server.
- Apache server logging information are stored in two different log files – error_log and access_log.
Avast For Mac Critical Error Check Syslog Centos
How can I use these logs?:
- The error_log contains messages related to httpd errors such as memory issues and other system related errors.
- This is the place where Apache server writes events and error records encountered while processing httpd requests.
- If something goes wrong with the Apache webserver, check this log for diagnostic information.
- Besides the error-log file, Apache also maintains a separate list of access_log.
- All access requests received over HTTP are stored in the access_log file.
- Helps you keep track of every page served and every file loaded by Apache.
- Logs the IP address and user ID of all clients that make connection requests to the server.
- Stores information about the status of the access requests, – whether a response was sent successfully or the request resulted in a failure.
/var/log/mysqld.log or /var/log/mysql.log
What’s logged here?
- As the name suggests, this is the MySQL log file.
- All debug, failure and success messages related to the [mysqld] and [mysqld_safe] daemon are logged to this file.
- RedHat, CentOS and Fedora stores MySQL logs under /var/log/mysqld.log, while Debian and Ubuntu maintains the log in /var/log/mysql.log directory.
How can I use this log?
- Use this log to identify problems while starting, running, or stopping mysqld.
- Get information about client connections to the MySQL data directory
- You can also setup ‘long_query_time’ parameter to log information about query locks and slow running queries.
Final Takeaway
While monitoring and analyzing all the log files generated by the system can be a difficult task, you can make use of a centralized log monitoring tool to simplify the process.
Critical Error Rf Online
Some of our customers take advantage of using Nagios Log Server to manage their server logs. There are many opensource options available if that’s out of the budget. Needless to say though, monitoring Linux logs manually is hard.
So if you want to take a truly proactive approach to server management, investing in a centralized log collection and analysis platform which allows you to view log data in real-time and set up alerts to notify you when potential threats arise.