Skip to main content
Solved

Read .log files and check for errors

  • January 2, 2025
  • 1 reply
  • 110 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. 

1 reply

virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • 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.