LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-23-2023, 08:32 AM   #1
RudyMartin
Member
 
Registered: Nov 2011
Location: Argentina
Distribution: Slackware, Debian
Posts: 40

Rep: Reputation: Disabled
Debian: switching back to /var/log/messages instead of journalctrl


at work, we recently upgraded some virtual machines running debian to the lastest version and I found that the old /var/log/messages are no longer updated and I have scripts and processes which rely of the messages files.

How do I go back to have all the files separated as it was before? I did some google searchers but all the posts I have found talk about using journalctrl -- which is NOT what I want, and I prefer the Slackware way of having just one file for a single purpose.

Last edited by RudyMartin; 12-24-2023 at 01:37 PM. Reason: marking the question
 
Old 12-23-2023, 09:36 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,682
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
Journal has a socket that rsyslog can read from so you can run them in parallel:
https://access.redhat.com/documentat...og_and_journal

Last edited by hazel; 12-23-2023 at 09:37 AM.
 
Old 12-24-2023, 10:58 AM   #3
thinknix
Member
 
Registered: Nov 2008
Distribution: Lots!
Posts: 178

Rep: Reputation: 58
Yep, journalctl and rsyslog can indeed run in parallel. 'sudo apt install rsyslog' is all you need, that will dump most logs into /var/log/syslog. If you prefer /var/log/messages, just change the log file name in /etc/rsyslog.conf.
 
Old 12-24-2023, 11:05 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
(but why?) What's wrong with journalctl?
 
Old 12-24-2023, 08:19 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
When you get all that sorted out, might consider converting the journal to transient to save the disk space.
 
  


Reply

Tags
logs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] iptables troubleshooting icmp and best place to log /var/log/messages or /var/log/iptables JockVSJock Linux - Security 18 02-12-2016 12:31 AM
where are /var/log/dmesg and /var/log/messages sryzdn Linux - Newbie 4 02-09-2015 09:35 PM
[SOLVED] No /var/log/messages , syslog , kern.log -but cat /var/spool/octopussy/octo_fifo masuch Linux - Newbie 4 06-13-2012 08:05 PM
/var/adm/messages vs /var/log/messages gomes1333 Linux - General 1 04-06-2010 04:08 AM
/var/log/messages and /var/log/cron not working sigkill Linux - Software 6 08-09-2008 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration