LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-25-2016, 01:39 PM   #1
jegadezz
Member
 
Registered: Oct 2015
Location: Bangalore,India
Distribution: Fedora,Ubuntu
Posts: 30

Rep: Reputation: Disabled
Angry How to keep only one Systemd Journal log in /run/log/journal


Hi all,

Please find the systemd-journal.config below,

Storage=volatile
RateLimitInterval=30s
RateLimitBurst=1000
RuntimeMaxFileSize=2M

Here I'm giving a Storage= volatile, So the systemd-journal log will be stores in /run/log/journal. And I have only 4MB space for /run Partition. And dlt-system taking the SYS logs from /run/log/journal and updates in dlt-viewer. Once the system.journal file reaches max 2Mb Size then it will create a new file with same name system.journal and the older file will be like this
system@4a74c729c0a24e968d09e53717b21...979e290.journal. From here my problem starts, Once the second file will be generated dlt-system not updating the logs in dlt-viewer. Now My question is possible to keep only one sys journal file in /run/log/journal folder. Seems like dlt-system not able to read if /run/log/journals has multiple .journal files. I have tried all the parameter which is available for systemd-journal.config But no luck. Any comments or suggestions are highly appreciated.

Thank you in advance,

Last edited by jegadezz; 07-25-2016 at 02:09 PM.
 
Old 07-25-2016, 02:54 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870
How did you get on with RuntimeMaxFiles=1?
 
Old 07-26-2016, 03:27 AM   #3
karanala
LQ Newbie
 
Registered: Jul 2016
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
How did you get on with RuntimeMaxFiles=1?
This seems to be not working any idea??
 
Old 07-27-2016, 07:24 AM   #4
Elizine
Member
 
Registered: Aug 2015
Posts: 54
Blog Entries: 1

Rep: Reputation: Disabled
You can either delete your old logs by using sudo journalctl --vacuum-size=1G or limit journal expansion by editing /etc/systemd/journald.conf file.

For more details please refer to Journal Maintenance section in this link - https://www.digitalocean.com/communi...e-systemd-logs
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't access full journalctl from script via systemd service even though user is in systemd-journal group iwtbf Linux - Newbie 0 02-19-2016 03:44 PM
LXer: systemd: Using the journal LXer Syndicated Linux News 0 11-12-2015 08:00 AM
Display systemd journal's archived logs JKostaRibeiro Linux - Software 4 07-03-2015 04:40 AM
LXer: Systemd journal provides more informative messages LXer Syndicated Linux News 0 11-19-2012 10:41 AM
Automatic file deletion Azhrarn Linux - Newbie 5 08-30-2005 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration