Our client is not interested in using any 3rd party Logger like JSON Logger or any other logger comnectors available. So is there any way to modify the default Anypoint Logging pattern in cloudhub in Json format like how a Json Logger does. Is there any way to add custom fields using default logger like api_name or flow_start_time, end_time? Currently I am creating a variable and defining required fields in a Json pattern and further configure the variable in the default logger which is a workaround and working fine but its just I was curious if this is possible in some easier way without writing any dwl?
Display Cloudhub Logs in Json Pattern along with Custom fields
445 Views Asked by Wiwek At
1
There are 1 best solutions below
Related Questions in MULE
- What is the relation of numberOfConcurrentTransactedReceivers with the number of threads mule spawns
- Mule 3.6 Custom Java Class
- How can I access Mule ESB Community edition via browser?
- Mule ESB Community Standalone Runtime
- Invalid Keystore Format when trying to deploy Mule project
- Custom Converter with log4j2 and Mule not working
- Getting Error While Using HTTP on Mule ESB canvas
- Which mule transports does the re-connection strategy work with
- When does the VM transport actually persist messages ? and also a peek into HA and VM transport
- Can I read or update dynamically the multiple Mule app properties without reloading or restarting?
- Mule: Migrating to the New HTTP Connector
- Where can I download MuleSoft Community Edition?
- Revoking OAuth tokens in Mule
- LDAP Search json output
- Basic JSON formatting using Mule Expression Language
Related Questions in MULESOFT
- How to Authorize myself to mulesoft/cloudhub account from python?
- Dataweave to remove json elements from values after groupBy | Mule 3.9
- Mule ESB: How to convert Binary form of payload to array in mule 4, dw 2.0
- Reformat XML payload by combining fields
- enrich one JSON array with data from another based on multiple conditions using dataweave 2.0
- How to use nested "map"
- Mulesoft Secure Properties Config Key Not Reading Variable
- Mule4 studio error Cannot delete existing folder
- Mule 3 Import | The selected folder does not contain a valid Studio project (missing mule-project.xml file)
- How to access lookup object value using Salesforce composite connector "Create sobject tree" in Mule 4
- Mulesoft 3.8 | Error running the application | An internal error occurred during: "<projectname>" | org.eclipse.core.jobs
- payload changing to com.mulesoft.weave.reader.DefaultSeekableStream (Mule 3)
- How to fetch record from .imp file in mule 4
- Call a flow of one mule project in another mule project
- Mule 4.2.2 upgrade: Error No value present MULE:SOURCE_RESPONSE_SENDorg.mule.extension.db.api.StatementResult
Related Questions in CLOUDHUB
- When passing data to an App in mule cloudhub via API gateway(CloudHub) getting exception -HTTP header is larger than 8192 bytes
- how to merge two Json based on key value in Mule
- MEL null safe Xpath works in Studio but not Cloudhub
- CloudHub HTTPS endpoint not working
- How to Authorize myself to mulesoft/cloudhub account from python?
- Connect Timeout Error on cloudhub : Mule version:4.2.2
- MessageBodyReader not found for media type=application/json;charset=utf-8
- Unable to locate file when code moved to CloudHub
- How read properties from mule-app.properties in standalone deploy?
- How to view all properties from a configuration file in runtime manager
- How to deploy to Anypoint Runtime Manager using SSO authentication?
- How do we know restart in cloudhub done automatically or Manual?
- HTTP Request Connection Timeout in CloudHub is 3 times longer than specified
- Getting this error org.mule.runtime.api.store.ObjectAlreadyExistsException: Object already exists for the key
- SalesForce Mule connector v10.13.0 on CloudHub subscribing event multiple times
Related Questions in ANYPOINT-PLATFORM
- In Mulesoft Api development, to integrate any application with salesforce do we need to use salesforce connector or http request?
- Mule 4 : Questions related to Mule 4 project structure and Anypoint Studio
- Trying to print only the numbers/Id's in the object using dataweave, can someone take a look?
- Connect anypoint platform to aws
- MuleSoft always returns back a 500 internal server error response from target API to source API even though another error occurred in the Target API
- Is it needed to activate Google Cloud first to use IdP functionality of Google?
- Anypoint Platform Design Center RAML client_id not being enforced
- how to use websocket inbound connections in mulesoft?
- Is there a way to automatically authorize clients that are created in API manager using the Mule 4 OAuth2 provider?
- How do we know restart in cloudhub done automatically or Manual?
- How do I connect a Mule application to Postman with OAuth2.0, I cant find the client secret or key
- Adding narrative documentation to OpenAPI specification
- Deployment issue on an on premise cluster with Maven arm Deployment - Mule 4.4.0
- When creating an API Notebook with a hyphen separated resource name "/songs-list" , it gives an error
- How to turn a string which should be split on the <space> an turned into an array of objects in mulesoft
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can add custom variables using Mule 4.4 MDC logging feature. Note that it is not available with previous versions.
You can also request to override the default logging configuration in CloudHub, otherwise the log4j2.xml in the application is ignored, and try to use the JsonLayout. I don't recommend it though.