Question

how can i Read data from API log File

  • 6 December 2022
  • 4 replies
  • 12 views

Badge +5

I want some data from the log, and I am using API to get this data anyone knows which format I use in feature reader to get the data from log file

 

image


4 replies

Userlevel 5
Badge +25

The FME log files are plain text, so the TextLine reader is the best to use.

 

But can you tell us a bit more about what you want to do and what data you want to get out of the log?

Badge +5

I need this information in separate columns. I mean, text in separate columns and their volumes in separate columns.image 

 

 

Userlevel 5
Badge +25

If you use FeatureWriters instead of regular writers in your workspace they'll generate a summary feature, I think that holds all the information you need and it's probably a lot easier to work with than parsing the log file afterwards.

 

If you want to go with the log file parsing route, I think selecting the lines using a StringSearcher (with a regex, and unfortunately I am not *that* good with regexes) should work.

Badge +5

Thanks for your response. I too not good at regex .. may be someone can help me

Reply