Skip to main content
Solved

Read .log files and check for errors

  • January 2, 2025
  • 1 reply
  • 38 views

so_much_more
Supporter
Forum|alt.badge.img+6

I have a work process that inlcudes running FME jobs daily.
I would like to automate logging of potential errors. To do so i am thinking of just reading the .log files from the workbench(es) and search for error as keyword to catch if something went wrong in the translation. 

I thought it would be straight forward to implement, but i cannot find a way to read .log files using FME directly. Instead I am thinking to use a python script. But I wanted to ask here if I have missed an easy method to check log files for errors.

Best answer by virtualcitymatt

It should be really easy to read with a csv reader. you just need to use the ‘|’ as the  delimiter.

 

In this case FME correctly pics the delimiter automatically. You will need to remove the Field Names Line value.

You can just then add the column names as you see fit. 

View original
Did this help you find an answer to your question?

1 reply

virtualcitymatt
Celebrity
Forum|alt.badge.img+34
  • Celebrity
  • Best Answer
  • January 3, 2025

It should be really easy to read with a csv reader. you just need to use the ‘|’ as the  delimiter.

 

In this case FME correctly pics the delimiter automatically. You will need to remove the Field Names Line value.

You can just then add the column names as you see fit. 


Reply


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