Hi Mosharaf,

If you are looking to increase the logging verbosity here is how you can do 
that:

To enable TRACE level logging for CloudStack, we need to perform the following 
in all the management servers or the management server of interest.

1) Open the file  /etc/cloudstack/management/log4j-cloud.xml
Find the logging level for 'com.cloud' for example.

<!-- ================ -->
   <!-- Limit categories -->
   <!-- ================ -->
   <category name="com.cloud">
     <priority value="DEBUG"/>
   </category>
replace the value 'DEBUG' with 'TRACE'.
   <category name="com.cloud">
     <priority value="TRACE"/>
   </category>
Run the below command on the management server which can be used to view the 
live logs, redirect the output to a new file at the same time.
tail -f /var/log/cloudstack/management/management-server.log 2>&1 | tee 
/tmp/tracelogs.log
Perform the operation which is failing, given that it can be reproduced.
Revert the changes made to '/etc/cloudstack/management/log4j-cloud.xml'

-Jithin

From: Md Mosharaf Hossain <mosharaf.hoss...@bol-online.com>
Date: Wednesday, 6 November 2024 at 12:01 PM
To: users@cloudstack.apache.org <users@cloudstack.apache.org>
Subject: Re: Inquiry Regarding Log Location for CloudStack Events
Hi Jithin

I have reviewed the log, but unfortunately, it doesn't provide the information 
I need to retrieve logs from the console.



For example, I’m looking to trace specific event logs from the CloudStack 
management server. Could you advise where I should look to find this 
information?
[cid:ii_m35hztwg0]
Regards
Mosharaf Hossain
Manager, Product Development
Bangladesh Online (BOL)

Level 8, SAM Tower, Plot 4, Road 22, Gulshan 1, Dhaka 1212, Bangladesh
Tel: +880 9609 000 999, +880 2 58815559, Ext: 14191, Fax: +880 2 2222 95757
Cell: +880 1787 680828, Web: www.bol-online.com<http://www.bol-online.com>


On Wed, Nov 6, 2024 at 11:45 AM Jithin Raju 
<jithin.r...@shapeblue.com<mailto:jithin.r...@shapeblue.com>> wrote:
Hi Mosharaf,

You can find the details here: 
https://docs.cloudstack.apache.org/en/latest/adminguide/troubleshooting.html


-Jithin

From: Md Mosharaf Hossain 
<mosharaf.hoss...@bol-online.com<mailto:mosharaf.hoss...@bol-online.com>>
Date: Wednesday, 6 November 2024 at 11:06 AM
To: users@cloudstack.apache.org<mailto:users@cloudstack.apache.org> 
<users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>>
Subject: Inquiry Regarding Log Location for CloudStack Events
Dear CloudStack Community,

I am currently working with Apache CloudStack, and I am trying to locate
the logs that capture specific CloudStack events (e.g., VM creation, user
actions, errors, etc.). Could you please provide guidance on where these
logs are stored, or point me to the appropriate documentation that explains
the log structure and location for CloudStack events?

Any insights or advice on how to effectively monitor and trace CloudStack
events through logs would be greatly appreciated.

Thank you in advance for your assistance. I look forward to your response.



Regards
Mosharaf Hossain
Manager, Product Development
Bangladesh Online (BOL)

Level 8, SAM Tower, Plot 4, Road 22, Gulshan 1, Dhaka 1212, Bangladesh
Tel: +880 9609 000 999, +880 2 58815559, Ext: 14191, Fax: +880 2 2222 95757
Cell: +880 1787 680828, Web: 
www.bol-online.com<http://www.bol-online.com><http://www.bol-online.com>



 

Reply via email to