Skip to Main Content
Integration


This is an IBM Automation portal for Integration products. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.


Status Future consideration
Workspace App Connect
Created by Guest
Created on Oct 29, 2024

ESQL function to write message to circulated log files.

In a message flow, a trace node is used to log messages to files. However, the trace node is not thread-safe, which means that when multiple threads write to a file, there is a possibility that the written messages may be mixed or lost. The log file configured with a trace node is a single file that continues to grow, as there is no log rotation function implemented.

Currently, we call Java function which wraps SLF4J + logback from ESQL. However, customer does not prefer to use OSS components, and it is best to provide such ESQL function as a part of product.(Project needs ESQL function, rather an new node).

current LOG function is not sufficient because it only can issue log to syslog, and only single record can be written.

Idea priority Low
  • Admin
    Ben Thompson
    Reply
    |
    Nov 26, 2024

    Thank you for raising this idea. As noted in the suggestion, ACE has a variety of pre-existing capabilities which come close to what is being requested here:

    1. ESQL can invoke Java but as mentioned, this requires a switch of technology and potentially a reliance on an open source library depending on the style of data you would like to write and your acceptance of what the code should look like (eg You could do everything in native Java and write to file which would remove the need for OSS libraries, but potentially still leaves a support burden for Java code).

    2. Trace node which can include a user's choice of text style, and a user's choice of precise file name and location, but as noted can end up with content contributed from multiple threads of execution interspersed with one another.

    3. ESQL LOG statement (writes a record to the event log or to user trace) / THROW statement, but the user does not have control over the precise file name which is used, nor other aspects such as the precise layout of the text (the message catalog helps dictate the layout of the message and how message inserts should be handled)

    4. Log Message Flow node (injects text which is under the flow developer's control into the Activity Log). Note that Activity Log can be redirected to file, and an Activity Log policy can be used to dictate behaviours such as the name of the file, the file sizes, and how it should be rotated (https://www.ibm.com/docs/en/app-connect/12.0?topic=properties-activity-log-policy-activitylog).

    5. Product extension for log4j node previously an IBM Support Pac but now available on GitHub: https://github.com/ot4i/node-for-log4j


    So - many alternatives but not quite what is being requested, so we will move the status of this requirement to Future Consideration. It would be helpful to understand from readers .. if a new ESQL function of the type suggested were implemented, would it be best done to allow completely free form text (ie like a printf kind of thing!), or would it be preferable to structure the entries with additional fields like a common timestamp or severity level etc.

    1 reply