Skip to main content
Solved

FME server email entire log

  • February 6, 2014
  • 1 reply
  • 26 views

andrew_r
Contributor
Forum|alt.badge.img
Is there a way in FME Server 2013 to email the entire log of a workspace job?

 

 

I setup the notification/topic/subscription to send an email after a job completes, but all the email says is success or failure.  I want the details on what happened right there in the email.

 

 

As far as I can tell the only way is to Python shutdown script that runs after the workspace closes.  It would read the logfile for the job, check if there was an error or warning messages, and if so use python smtblib to email the entire contents of the job log to me.  I guess the other benefit of this is I can provide the To: email address as a dynamic parameter of the workspace.  I plan to use the same workspace dynamically for different datasets. Based on which dataset its working on, email that dataset's maintainer directly. 

 

 

Is there a more straight-forward out of the box approach?  The FMEServerEmailGenerator and FMEServerNotifier seem close, but I'd need the logfile after the workspace completes.

 

 

Thanks for any help you can provide,

 

 

Andrew R.

Best answer by jpvo

Hi Andrew,

 

 

I don't know any straight-fowrad way of dumping the entire log within the e-mail but you can easily attach it as .log file.

 

 

set the ATTACH_TRANSFORMATION_LOG to true within your propertiesFile.properties in:

 

C:\\Program Files\\FMEServer\\Utilities\\tomcat\\webapps\\fmedatadownload\\WEB-INF\\conf

 

 

#ATTACH_TRANSFORMATION_LOG - A boolean value that determines if transformation

 

#                            log needs to be attached to notification email

 

ATTACH_TRANSFORMATION_LOG=true

 

This example would work for a datadownload service but you have the same propertiy files for other services as well (brows to the correct folder).

 

 

You restart your FME Server application and you now have an attached log file to any datadownload job. I hope it helps.

 

 

JP.
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

jpvo
Participant
Forum|alt.badge.img+1
  • Participant
  • Best Answer
  • February 11, 2014
Hi Andrew,

 

 

I don't know any straight-fowrad way of dumping the entire log within the e-mail but you can easily attach it as .log file.

 

 

set the ATTACH_TRANSFORMATION_LOG to true within your propertiesFile.properties in:

 

C:\\Program Files\\FMEServer\\Utilities\\tomcat\\webapps\\fmedatadownload\\WEB-INF\\conf

 

 

#ATTACH_TRANSFORMATION_LOG - A boolean value that determines if transformation

 

#                            log needs to be attached to notification email

 

ATTACH_TRANSFORMATION_LOG=true

 

This example would work for a datadownload service but you have the same propertiy files for other services as well (brows to the correct folder).

 

 

You restart your FME Server application and you now have an attached log file to any datadownload job. I hope it helps.

 

 

JP.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings