Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Install Logwatch with your distribution’s package manager, copy its default configuration into /etc/logwatch/conf/, verify that local mail delivery works, and run a report manually before enabling unattended execution. On Ubuntu or Debian, the basic path is sudo apt update, sudo apt install logwatch, then sudo logwatch --detail Low --range today.

This guide shows how to configure report delivery, choose services and date ranges, include archived logs, reduce noisy output, and verify the scheduler and mail path on a Linux VPS.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What Logwatch does on a Linux VPS

Logwatch is a customizable, pluggable log-monitoring and reporting system. It reads logs from services installed on the server, applies service-specific filters, summarizes events for a selected period, and writes the result to standard output, a file, or email. Instead of opening every authentication, web, mail, or system log by hand, you receive a report that highlights items worth investigating.

Logwatch is a reporting layer, not a replacement for log storage, alerting, intrusion prevention, or a mail transfer agent (MTA). It can only report what the underlying logs contain, and email delivery depends on a working local MTA or relay. The filters and service names available on your VPS also depend on the Logwatch package and the log formats present on that distribution.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.

Prerequisites and a safe first plan

  • A Linux VPS with root or sudo access.
  • A supported package repository for the distribution image.
  • Readable service logs and, if you want email reports, a configured MTA or SMTP relay that can deliver to the destination address.
  • A local administrator address, such as admin@example.com, for report delivery.

Use this order to avoid troubleshooting several moving parts at once:

  1. Install the package.
  2. Copy the shipped configuration into the local configuration directory.
  3. Test a report on standard output or in a file.
  4. Configure email and test delivery.
  5. Confirm the distribution’s scheduler and inspect mail logs before relying on unattended reports.

Install Logwatch on Ubuntu or Debian

Refresh package metadata and install

On Ubuntu and Debian, install the package with the distribution package manager:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo apt update
sudo apt install logwatch

The first command refreshes package metadata. Run it when the image is new or when the package manager reports stale indexes. The second command installs Logwatch and any dependencies supplied by the enabled repositories. If the package cannot be found, verify that the VPS image has the normal repository components enabled for its release, then refresh the metadata again.

Check that the command is available

After installation, confirm that the executable and manual page are present:

logwatch --help
man logwatch

The manual page is important because service filter names vary with the installed filters and local distribution packaging. Use the names shown by your local installation rather than assuming that a service has the same name on every Linux image.

Preserve package defaults before editing

Distribution packages place their shipped defaults under /usr/share/logwatch/. Ubuntu documents the main template at /usr/share/logwatch/default.conf/logwatch.conf. Treat that tree as vendor-managed: package upgrades can replace files there.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Copy the template into the local configuration directory and edit the copy:

sudo cp /usr/share/logwatch/default.conf/logwatch.conf /etc/logwatch/conf/
sudo editor /etc/logwatch/conf/logwatch.conf

The local file is /etc/logwatch/conf/logwatch.conf. Debian also documents /etc/logwatch/conf/ignore.conf for suppressing known, uninteresting entries and /etc/logwatch/conf/override.conf for local overrides. Keeping changes below /etc/logwatch/conf/ protects them from updates and makes it clear which settings are specific to your VPS.

Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth

Settings that matter most

A practical starting configuration is:

Output = mail
MailTo = admin@example.com
MailFrom = logwatch@vps.example.com
Detail = Low
Service = All
  • Output chooses the destination. Common values are stdout, file, and mail.
  • MailTo is the recipient address used for the report.
  • MailFrom sets the sender when your local mail setup accepts that envelope or header address. It is optional, but a domain that your relay permits is less likely to be rejected.
  • Detail controls how much information filters include. Start at Low; increase it only when the summary leaves out information you need.
  • Service controls scope. All processes every service for which a filter is installed.

When you are still validating the installation, leave Output at its default or select file output. This separates Logwatch processing problems from mail-delivery problems.

Choose output, detail, and scope

Output destinations

Output value Use it for Example
stdout Interactive testing in your terminal sudo logwatch --output stdout --range today
file Saving a report for inspection or another local process sudo logwatch --output file --filename /tmp/logwatch.txt --range today
mail Sending the generated report through the VPS mail system Output = mail

File output is useful when a report is too long to read in a terminal or when you need to verify the generated content before involving an SMTP relay. Remove temporary reports when they contain sensitive usernames, IP addresses, or command details.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Detail levels

Named level Numeric level When to use it
Low 0 Routine daily summaries with the least noise
Medium 5 Investigating a pattern that the low-detail summary does not explain
High 10 Short-term, detailed investigation of a busy or suspicious service

The numeric mapping is useful when a filter or command-line example specifies a number. Do not jump directly to high detail for a busy VPS: the report can become large enough to hide the events you actually need.

All services versus selected services

For the first run, Service = All is a good installation check because it demonstrates which filters are active. Once you understand the report, narrow it to services that exist on the VPS, such as SSH access, authentication, a web server, mail, or a database.

Ubuntu’s configuration syntax allows repeated exclusions:

Service = All
Service = "-http"
Service = "-eximstats"

Command-line selection is useful for one-off investigations. Supply one or more --service options:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
sudo logwatch --service sshd --range yesterday --detail Medium

Use the exact service names shown by the installed filters and by man logwatch. A service name that works on one distribution may not exist on another, and a filter may expect a particular log format.

Run and validate your first report

Generate today’s report interactively

Run this command after installation:

sudo logwatch --detail Low --range today

This validates that Logwatch can read the logs, load its filters, and produce a report. Review the sections for services that are actually enabled on the VPS. An empty section is not automatically an error: it may mean that the service generated no matching events during the selected period.

Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

Useful one-off commands

sudo logwatch --range yesterday --detail Low
sudo logwatch --service sshd --range yesterday --detail Medium
sudo logwatch --output file --filename /tmp/logwatch.txt --range today
sudo logwatch --format html --range today

Use --mailto address when you want a one-off report sent to a specific recipient without changing the local configuration:

sudo logwatch --mailto admin@example.com --range yesterday --detail Low

The command-line options override or supplement the configuration for that run. This makes them useful for testing a different range, service, detail level, or destination without editing the persistent file.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure email delivery safely

Understand the mail prerequisite

Setting Output = mail does not create an email service. The VPS must already have an MTA or relay that accepts locally generated mail and can deliver to the destination address. Depending on your provider and image, outbound SMTP may be restricted or require authentication and a relay host.

Before changing Logwatch, test the mail path independently with the mail tooling supplied by your VPS. Then run Logwatch with a small, low-detail report. If the report appears in the terminal but not in the inbox, Logwatch has done its job and the fault is in the MTA, relay policy, DNS, spam filtering, or recipient mailbox.

Mail configuration example

After the mail path works, place these settings in /etc/logwatch/conf/logwatch.conf:

Output = mail
MailTo = admin@example.com
MailFrom = logwatch@vps.example.com
Detail = Low
Service = All

Use an address and sender domain accepted by your relay. If your relay rewrites local senders, the delivered From address may differ from MailFrom; inspect the MTA’s own logs to see what happened.

Test delivery and inspect failures

  1. Generate a report to standard output: sudo logwatch --output stdout --range today --detail Low.
  2. Generate the same report with mail output or --mailto.
  3. Check the recipient mailbox, including spam or quarantine folders.
  4. Inspect the local MTA and mail logs if no message arrives.
  5. Only after a successful test, leave Output = mail in the persistent configuration.

A successful command with no delivered message usually indicates a downstream mail problem rather than a Logwatch parsing problem. Conversely, errors about missing filters, unreadable logs, or invalid options should be fixed locally before investigating SMTP.

Understand date ranges and archived logs

Logwatch supports the named ranges today, yesterday, and all. The range controls which timestamps are considered; it does not change the contents of the underlying logs.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
Range Typical use Example
today Check events from the current day sudo logwatch --range today
yesterday Produce a complete daily report after the day has ended sudo logwatch --range yesterday
all Process all available matching data sudo logwatch --range all --archives --detail Medium

Use --archives with an all-data run when you want archived log files included in addition to current logs. Archived files are normally created by log rotation. They must still exist and be readable; Logwatch cannot report entries that have been deleted or compressed in a format the installed filter cannot read.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When reverse DNS lookups would slow a report or obscure the original addresses, add --numeric:

sudo logwatch --range yesterday --numeric

Numeric output keeps IP addresses in numeric form, which is useful when correlating events with firewall logs or an incident timeline.

Schedule unattended reports

Why scheduling differs by distribution

Logwatch does not have one universal scheduler layout across Linux distributions. A package may install a cron script, a systemd timer, or rely on an administrator-created schedule. Do not assume that installing the package automatically creates the same job on every VPS image.

Oracle Linux 9 documents an installed /etc/cron.daily/0logwatch script. That nightly job runs Logwatch and mails the report to root. Ubuntu and Debian images may use a different package arrangement, so inspect the local system rather than copying the Oracle path blindly.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Confirm the local job

  1. List daily cron scripts: ls -l /etc/cron.daily/.
  2. Look for a Logwatch entry such as 0logwatch.
  3. Check systemd timers if no cron script is present: systemctl list-timers --all.
  4. Read the package documentation and the installed manual for the expected schedule.
  5. Confirm that the scheduler’s execution user can read the logs and invoke the configured mail path.
  6. After the scheduled time, inspect mail logs and the recipient mailbox.

A reliable handoff to unattended operation requires all three pieces: a manual report that succeeds, a scheduler that is actually enabled, and a mail path that delivers. If any one is missing, the absence of a message is ambiguous.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common problems

The package cannot be found

Refresh package metadata with sudo apt update and verify that the repository component containing Logwatch is enabled for the VPS release. On a vendor distribution, use that distribution’s package manager and package documentation instead of assuming the Debian package name or repository layout.

The report is empty or missing a service

Check the selected date range and confirm that the service produced matching log entries during that period. Then verify the filter name with man logwatch and inspect the installed service filter files. A service may log to a nonstandard path, use a format the filter does not recognize, or simply have no events to summarize.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

Changes to the configuration appear ignored

Confirm that you edited /etc/logwatch/conf/logwatch.conf, not only the shipped file under /usr/share/logwatch/. Check for duplicate settings later in the configuration and review any command-line options, which can override the file for a single run. Keep local exclusions in ignore.conf and local replacements in override.conf where appropriate.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

No email arrives

  1. Run Logwatch with --output stdout or --output file to prove that report generation works.
  2. Verify MailTo and, if used, MailFrom.
  3. Test the VPS MTA or relay separately.
  4. Inspect mail logs for rejected recipients, DNS failures, connection blocks, authentication errors, or queue delays.
  5. Check spam and quarantine at the destination.

Ubuntu documentation treats working mail services as a prerequisite. Logwatch cannot repair a blocked outbound SMTP connection or an incorrectly configured relay.

The report is too large

Lower Detail to Low, select only the services you operate, or exclude noisy services with repeated negative Service settings. A high-detail all-services report is useful for a focused investigation, but it is a poor daily mailbox notification on a busy VPS.

Older events are missing

Use the correct range and add --archives when processing rotated files:

sudo logwatch --range all --archives --detail Medium

Then verify that logrotate archives still exist, are readable by the command’s user, and are in a format supported by the installed filter. Retention policies may have removed the period you are trying to inspect.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Scheduled reports never run

Inspect both cron and systemd timers, check that the job is executable, and review scheduler logs. Run the same command manually as the scheduler’s user where safe, because a root-only readable log or a different environment can make an interactive test misleading. Confirm the scheduler’s output is not being discarded before it reaches the MTA.

A maintenance workflow that stays quiet and useful

  1. Keep the package-managed defaults untouched under /usr/share/logwatch/.
  2. Store site-specific settings under /etc/logwatch/conf/.
  3. Start with Low detail and Service = All for one validation run.
  4. Remove irrelevant services and add narrowly targeted services for the daily report.
  5. Use yesterday for a stable daily window so the report is complete when it arrives.
  6. Raise detail temporarily for an investigation, then return to the normal level.
  7. Review the scheduler and mail logs periodically; a silent mailbox can mean either no events or a broken delivery path.

Keep Logwatch’s role clear: it summarizes existing logs so you can notice changes quickly. Continue to protect, rotate, and retain those logs according to your operational and compliance requirements.

Final setup checklist

  • Logwatch is installed from the VPS distribution repository.
  • The local configuration exists at /etc/logwatch/conf/logwatch.conf.
  • A manual low-detail report completes successfully.
  • The chosen services and exclusions match the software actually running on the VPS.
  • The MTA or relay delivers a test message to the intended mailbox.
  • The configured scheduler is present and enabled for the distribution.
  • Archived-log testing uses --archives when historical data is required.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.