Skip to main content

How to get the log file from the folder

C:\\ProgramData\\CData\\Arc\\workspaces\\[WorkspaceId]\\[ConnectorId]\\Logs\\Sent\\[Date]\\[MessageId]\\[LOG FILE NAME].mdn

and send it by email after running the AS2 connector?

I tried using the AS2 success connector linked to a "notify" or "send email" or "scripts"

I tried in the AS2 connector in the Events tab in "Before send" to find the file and attach it to an email

I tried to read the .mdn file in batch mode and have the result in the output so I could create the attachment

all of them without success, is it possible to do this?

Hi Mauricio,

 

It is not possible to process the logs of any connector directly from the UI. 

But these is a way to access the logs or .mdn files present in the AS2 connector folder in your application data directory.

You can use the File connector with a path to the Logs\Sent folder of your AS2 connector.


If you want to pull only the ASN MDN logs, you can use the File Mask as *.mdn to receive files only with .mdn extension. Her you will require to enable the Recurse remote subdirectories option from the Advanced tab of your File connector.
 


If you enable the Recurse remote subdirectories, this will allow the File connector to receive the files from the destination folder along with the files from its subfolders present in the destination folder (Given Path).

Explanation about why we enable the Recurse remote subdirectories in File Connector here:

Here the AS2 connector logs by default present in the Logs\Sent\Date\MessageId\log.mdn. The destination path varies based on the Date and the MessageId, but the upto Sent folder the path is same, which is why we are giving the path upto the Logs\Sent by enabling the Recurse remote subdirectories to receive files from all subfolders.

Once you setup the File connector with Receive enabled, you can create an Email Send connector to send this .mdn log to your email address.

Here is the sample flow:
 


In this way, you can setup the flow to receive the .mdn logs from the Logs\Sent folder based on the File Connector Receive Interval settings of an AS2 connector to send these messages to the Email. Send connector.

I hope this helps.
 

 


Thank you Chaitanya Sandra, works