Log Analysis just got easier for serverless apps

In serverless applications, functions are small and need to execute in less amount of time in a stateless environment. Logging then becomes a challenge for DevOps to do Root Cause Analysis (RCA) or get insights about the behavior of their applications.

One logging approach is to add code to your functions to send logs to an external API, which can be a painful process for you and the performance of your applications. You don’t want to add complexity to your functions in terms of security, extra endpoints and protocols, as opposed to just concentrating on your business logic scoped to the single function. Because every millisecond counts when using serverless, you don’t want end users waiting while you send logs during action invocation.

IBM Cloud Functions now forward logs to the IBM Cloud Log Analysis service, where you can perform full-text search through all generated messages and query based on specific fields (like log-level).

In the case of IBM Cloud Functions, the platform takes care of the complexity, allowing you to collect and analyze logs using the ELK Stack (Elasticsearch, Logstash, and Kibana) as a centralized log management solution. Just print a line to standard out or error and your logs will be available in a secure, scalable way, without worrying about infrastructure for logging.

You can use the logging capabilities in the IBM Cloud to understand the behavior of your Serveless Applications.

No special instrumentation is required to collect the standard out (stdout) or standard error (stderr) logs.

User Logs

For example, you can now leverage serverless logs to provide the following features:

  • Provide an audit trail for an application

  • Detect problems in your application

  • Identify vulnerabilities

  • Troubleshoot your app

  • Trace your app across components in the Cloud Platform

  • Detect patterns that you can use to preempt actions that could affect your Serverless Application.

Activation Records

In addition to log lines, IBM Cloud Log Analysis also indexes the results (activation records) generated by IBM Cloud Functions. The results contain rich-metadata relevant for activations, such as their duration or result-code (success, error). All of the fields are queryable, and as such can help you understand how your Cloud Functions Actions are behaving.

With Kibana, you can do queries, build visualizations, and easily compose dashboards customized for your environment.  To build a visualization, first access the management tab in the Kibana dashboard, and then refresh the field list for the index pattern, so that terms become available for selection.

Get started with IBM Cloud Functions

For more information make sure you to check out the IBM Cloud Functions documentation.

Categories

More from compute

Mainframe Application Modernization Beyond Banking

4 min read - Looking at mainframe modernization in industries like insurance, automotive and retail. This is part one in a five-part series on mainframe modernization. When you think of the world’s biggest modernization challenges, you immediately think of banking, and for good reason. Banks were among the first to roll out advanced mobile apps some 15 years ago, and they had already started offering online services in the mid-1990s. Well before that, banks were interacting through massive electronic payment gateways and operating mainframe…

IBM Tech Now: April 17, 2023

< 1 min read - Envizi + Turbonomic, IBM Power Updates and the IBM CIS Standard Next Plan  Welcome IBM Tech Now, our video web series featuring the latest and greatest news and announcements in the world of technology. Make sure you subscribe to our YouTube channel to be notified every time a new IBM Tech Now video is published. IBM Tech Now: Episode 74 Watch the video This week, we're focusing on the following topics: IBM Envizi + IBM Turbonomic IBM Power Updates IBM…

Focusing on Increasing Our Clients’ Profitability and Performance When They Need It Most

4 min read - Exciting updates from IBM Power. As we noted last quarter when we announced this year’s strategic direction for IBM Power, one of the most common questions we hear from our clients is how they can trim their IT spending without compromising performance and data protection. A short time later, these concerns are even more prevalent as the global economic market continues to fluctuate and perpetuate uncertainty amidst rising interest rates and inflation. As the demand on IT services continues to…

Securing the Boot Process for IBM Cloud Bare Metal Servers for VPC

4 min read - IBM Cloud Bare Metal Servers for VPC have been available for almost a year, and we continue the steady rollout of additional features to ensure bare metal servers meet our customers’ requirements. The latest IBM Cloud Bare Metal Servers for VPC features are focused squarely on security by providing customers with the ability to enable Secure Boot and to use a Trusted Platform Module (TPM 2.0). Secure Boot and TPM are software- and hardware-based mechanisms used to validate and enforce…