Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Petr_Hantak
Advisor
Advisor

Locally managed Quantum Edge - local logs path update

I played little bit in lab with Quantum Edge. Maybe this could be useful for someone.

NOTE: I PREPARE THIS SOLUTION FOR TEST PURPOSES ONLY. IT IS NOT SUPPORTED BY VENDOR!

Motivation:

Compare to SPARK appliances, Quantum Edge has no possibility to mount external SD card to store logs. At least I did not found any hint how to emulate this. I am testing things on locally managed edge often and when I reboot it, previous logs disappear and also log queue in default location is too short. I would like to prevent this and make logs to survive reboot plus I would like to use for it space from "/logs" folder in file-system (every additional space above required one during installation is attached here).

 

Solution:

  • Create some new folder in /logs (for example /logs/custom_log_loc)
  • Create simple bash script for replace of symbolic link related to logs (this is optional, you can do it directly in crontab in next step as well). Remember to add script file executable rights.

 

#! /bin/sh
rm /opt/fw1/log
ln -s /logs/custom_log_loc/ /opt/fw1/log

 

 

  • Edit crontab -e and put following line to add script there. This will replace symlink after each device boot.

 

@reboot /<script_location>/your_script.sh 

 

  • For first time you need to reboot the device to make solution operational.

Now you have possibly bigger storage space for logs on locally managed Edge device and it survive reboot. Keep on mind that could be there issues with clearing the space in new location and you need to handle it. 

0 Kudos
3 Replies
G_W_Albrecht
Legend
Legend

Quantum Edge is EOL and will not be updated from R80.20.x - so this is nice, but not very important 😉

CCSE CCTE CCSM SMB Specialist
0 Kudos
Petr_Hantak
Advisor
Advisor

I agree with you. I play with it because the product is still live for some customers, so I just share results to world 😉

0 Kudos
G_W_Albrecht
Legend
Legend

Official CP support of R80.20.x ends March 2024, so if it is still live for some customers, they should work on replacing it - and you can also send the logs to an external syslog server...

CCSE CCTE CCSM SMB Specialist
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events