Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6123585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:02:02+00:00 2026-05-23T16:02:02+00:00

Information abound about syslog, but I can’t find anything very concise for my interest.

  • 0

Information abound about syslog, but I can’t find anything very concise for my interest.

I have a user-created bash script that should log various debug, info, and error messages. I’d like to use syslog. This in Ubuntu Server distribution.

I’m looking for a quick overview only.

  • I see many files in /etc/logrotate.d that don’t get discussed in any man pages that confuse me.
  • Should I be logging as user? local0-7?
  • Do I need to do something to configure this before I use these in a logger command?
  • How should I define what logs get created? Or is this already done?

With those questions answered I should be able to glean the details from the man pages.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:02:03+00:00Added an answer on May 23, 2026 at 4:02 pm

    You want the logger(1) utility, available in the bsdutils package.

    From the man page:

         logger - a shell command interface to the syslog(3) system log module
    

    There’s nothing that’s essential to configure, just pass the switches you want. E.g.

    logger -p local3.info -t myprogram "What's up, doc?"
    

    You can now inspect wherever local3.info messages go and you will see something like this:

    Jul 11 12:46:35 hostname myprogram: What's up, doc?
    

    You only need to worry about logrotate if you need something fancier than this.

    As for what log facility to use, I would use daemon for daemon messages and local for most other things. You should consult syslog(3) for the purposes of the different facilities.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've searched around but I can't find any information about this; maybe I'm not
The problem should be common, but i can't find any clear information about it.
I searched around a little bit for information on this but didn't find anything
I have two tables for storing information about a user. One is for authentication,
I can't find much information around the web about it. Has anyone used both
I've been looking around and I can't find much information on how I would
Surprisingly enough there's very little information on the Web about using Bouncy Castle's lightweight
I'm surprised that I cannot find much information on the internet about this. I
There is a lot of information about Java around, but I don't understand how
I have a Database containes information about all the branches of our company around

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.