Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[M/MX] "error: could not resolve file:xxxxx" message generated when "show log messages" is run

0

1

Article ID: KB26497 KB Last Updated: 12 Aug 2020Version: 2.0
Summary:

This article describes the issue of the "error: could not resolve file:xxxxx" error message that is generated when the log messages file is accidentally deleted. It also describes how to resolve the issue.

 

Symptoms:

When the log messages file is accidentally deleted, the following error message is generated when the show log messages command is run:

lab@M7i-13# run show log messages
error: could not resolve file: messages

 

Solution:

Enabling log archive will create the log messages file. You can disable log archive, if it is not required, when the log messages file is created:

[edit]
lab@M7i-13# run file delete /var/log/messages

[edit]
lab@M7i-13# run show log messages
error: could not resolve file: messages
To resolve the above specified problem, execute the following:
[edit]
lab@M7i-13# set system syslog archive

[edit]
lab@M7i-13# commit
commit complete

[edit]
lab@M7i-13# run show log messages

[edit]
lab@M7i-13# commit
commit complete

[edit]
lab@M7i-13# run show log messages
Dec 13 15:29:02 M7i-13 mgd[17928]: UI_COMMIT: User 'lab' requested 'commit' operation (comment: none)

[edit]
lab@M7i-13# run show log messages?
Possible completions:
<filename> Name of log file
messages Size: 103, Last changed: Dec 13 15:29:03
messages.0.gz Size: 139680, Last changed: Dec 05 10:30:00
messages.1.gz Size: 137563, Last changed: Nov 06 07:00:00
messages.2.gz Size: 137005, Last changed: Nov 05 09:15:00
messages.3.gz Size: 137129, Last changed: Nov 04 11:30:00
messages.4.gz Size: 136849, Last changed: Nov 03 13:45:00
messages.5.gz Size: 9217, Last changed: Oct 01 18:30:00
messages.6.gz Size: 9344, Last changed: Oct 01 18:28:00
---(more 76%)---[abort]

To clear the content in show log messages, use the following command:

[edit]
lab@M7i-13# run clear log messages

 

Modification History:

2020-08-12: Article reviewed for accuracy and no changes were made; article valid and relevant

 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search