Palo Alto Networks Knowledgebase: How to view Lambda Function logs in AWS

How to view Lambda Function logs in AWS

2027
Created On 02/07/19 23:57 PM - Last Updated 02/07/19 23:57 PM
Resolution

This article assumes you are familiar with the Lambda Console. If you are not familiar please see the following AWS resource.

 

What Is AWS Lambda?
http://docs.aws.amazon.com/lambda/latest/dg/welcome.html

 

In order to deploy our VM-Series firewall we use the Lambda console as the script host. This is where code is executed and it must be able to communicate with the management interface of the firewall to properly function. Sometimes there will be issues with Lambda, such as ENI IP address changes, and you will need to look at the logs to gain more insight into the problem. It may not be a problem with the actual VM-Series firewall but without understanding how to view the Lambda logs, you will not have the confidence to direct someone to AWS for further assistance.

 

 

1. The Lambda Function logs will be named similiar to the template stack you deployed using the Cloud Formation Template console in AWS. Make note of the stack that was used to lauch the firewall template or complete VPC template including the firewall. 

01_Lambda_Logs.PNG

 

 

2. Navigate to the Lambda console and you will see individual function names for each lambda function. The logs you need will be located within here. 

02_Lambda_Logs.PNG

 

Lambda Logs 

ASG_xxxxx - Auto Scale Group Logs. These logs will match the FW name within the respective ASG
ASG_xxxxx Auto Scale Group Logs. These logs will match the FW name within the respective ASG

Lambda-sched-event - Will provide a log for all events run within Lambda
AddEniLambda - You may see errors here releated EIP resource issues as this log is primary related to adding ENI's
InitLambda - This log is usually only generated from the initial template spinup. 

 

3. Click into one of the lambda functions and select the monitoring tab. 

03_Lambda_Logs.PNG

 

 4. On the right, select "view logs in Cloudwatch"

04_Lambda_Logs.PNG

 

 5. From here, you will see different log groups with different time stamps. 

05_Lambda_Logs.PNG

 

 6. Just like the physical firewall, you will need the timestamp of the issue in order to look at the logs for each function. You will not know what you are looking for until you find it. Take note of any suspicious logs around the time of the issue.  

06_Lambda_Logs.PNG

 

 

 

If you have an existing support case open, we may request that you export and upload the lambda function logs to the support case for further review. 

 

Export Log Data to Amazon S3 Using the Console
http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/S3ExportTasksConsole.html

 



Attachments
Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClDDCA0&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Attachments
Choose Language