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 Announcements

IBM TechXchange underscores the importance of AI skilling and partner innovation

3 min read - Generative AI and large language models are poised to impact how we all access and use information. But as organizations race to adopt these new technologies for business, it requires a global ecosystem of partners with industry expertise to identify the right enterprise use-cases for AI and the technical skills to implement the technology. During TechXchange, IBM's premier technical learning event in Las Vegas last week, IBM Partner Plus members including our Strategic Partners, resellers, software vendors, distributors and service…

Introducing Inspiring Voices, a podcast exploring the impactful journeys of great leaders

< 1 min read - Learning about other people's careers, life challenges, and successes is a true source of inspiration that can impact our own ambitions as well as life and business choices in great ways. Brought to you by the Executive Search and Integration team at IBM, the Inspiring Voices podcast will showcase great leaders, taking you inside their personal stories about life, career choices and how to make an impact. In this first episode, host David Jones, Executive Search Lead at IBM, brings…

IBM watsonx Assistant and NICE CXone combine capabilities for a new chapter in CCaaS

5 min read - In an age of instant everything, ensuring a positive customer experience has become a top priority for enterprises. When one third of customers (32%) say they will walk away from a brand they love after just one bad experience (source: PWC), organizations are now applying massive investments to this experience, particularly with their live agents and contact centers.  For many enterprises, that investment includes modernizing their call centers by moving to cloud-based Contact Center as a Service (CCaaS) platforms. CCaaS solutions…

See what’s new in SingleStoreDB with IBM 8.0

3 min read - Despite decades of progress in database systems, builders have compromised on at least one of the following: speed, reliability, or ease. They have two options: one, they could get a document database that is fast and easy, but can’t be relied on for mission-critical transactional applications. Or two, they could rely on a cloud data warehouse that is easy to set up, but only allows lagging analytics. Even then, each solution lacks something, forcing builders to deploy other databases for…