One Star bax
One Star

How to log progress statistics

Scenario : extracting data form one database and inserting it into another.
I try to use flowMeter for progress log purpose but it just displays a message (which is also very ugly) at the end :
2013-06-13 13:39:49;8dkrU5;ElLlYx;ElLlYx;4520;LEARN;update_tables;_W_buENKxEeKRePtjf-zDjA;0.1;Default;tFlowMeter_3;MY_CUSTOM_NAME;1541211;;
The enabled statsCatcher gives me another ugly log about the time of execution :
2013-06-13 13:39:49;8dkrU5;ElLlYx;ElLlYx;4520;LEARN;update_tables;_W_buENKxEeKRePtjf-zDjA;0.1;Default;tMSSqlOutput_1;end;success;513827
513 is the number of seconds it has spent to finish.
1. How can I tweak flowMetter (or use something else) to see a real progress log :e.g. 100 k inserted, 200 k inserted ?
2. How can I tweak statsCatcher to display the 'MY_CUSTOM_NAME' (name you give to the component on the design workspace) instead of 'tMSSqlOutput_1'.
3. How can I get rid of all those useless identifiers (e.g. '_W_buENKxEeKRePtjf-zDjA')
5 REPLIES
Seventeen Stars

Re: How to log progress statistics

You can use the AMC functionality or use the tFlowCatcher component in conjunction with a file output or database output component.
tFlowCatcher -> tMySqlOutput
Community Manager

Re: How to log progress statistics

Hi
1. How can I tweak flowMetter (or use something else) to see a real progress log :e.g. 100 k inserted, 200 k inserted ?
2. How can I tweak statsCatcher to display the 'MY_CUSTOM_NAME' (name you give to the component on the design workspace) instead of 'tMSSqlOutput_1'.
3. How can I get rid of all those useless identifiers (e.g. '_W_buENKxEeKRePtjf-zDjA')

The schema of tFlowMeterCatcherand tStatsCatcher are read only, you can link it to a tMap to remove the columns that you do not want and do some transform, before log them to DB or file.
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star bax
One Star

Re: How to log progress statistics

what about 1 (log progress) and 2(statCatcher schema does not have a label field in his schema) ?
Community Manager

Re: How to log progress statistics

what about 1 (log progress) and 2(statCatcher schema does not have a label field in his schema) ?

In order to avoid duplication of labels in a job, the tStatCatcher and tLogCather always log the real name of the component, not the label. If you want the label of the component to be logged, link it to a tMap and add a new column, let's call it "label", and set its expression like this:
row1.origin.equals("tMysqlInput_1")?"label1"Smiley Sadrow1.origin.equals("tMysqlInput_2")?"label2":"label3")
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star bax
One Star

Re: How to log progress statistics

Thank you.
What about progress log ?
After running a job it is critical to have some logs about how much data was migrated, e.g. :
100.000
200.000
300.000
etc.
By now it just displays only one entry at the end of some job-part (statsCatcher - the overall time, flowMeter - the overral record count)