Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

How to add time imormation to tLogRow

Highlighted
Six Stars

How to add time imormation to tLogRow

Hi , I'm looking for how to add time imormation to tLogRow as prefix.

Highlighted
Employee

Re: How to add time imormation to tLogRow

Hi,

 

   Could you please elaborate your use case further?

 

   If you want to print the time of printing each row, you can add an additional column and add system time by using TalendDate.getCurrentDate() function to that column.

 

   If you just want to print the system time before running tLogrow, you can use a tjava and print time using System.out function in java.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

Highlighted
Six Stars

Re: How to add time imormation to tLogRow

I would like to do both cases.
How can you do the former one ?
Highlighted
Six Stars

Re: How to add time imormation to tLogRow

I wrote many tLogRows , so i appreciate if the way is easy.

Highlighted
Employee

Re: How to add time imormation to tLogRow

Hi,

 

  Please add your current columns to a tMap. In the output section, add an additional column to catch log time.

image.png

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

Highlighted
Six Stars

Re: How to add time imormation to tLogRow

Thanks .

I wrote many tLogrows.

Do I have to add tmap before tLogrows?  If there is any easier solution, i appreciate it.

Highlighted
Employee

Re: How to add time imormation to tLogRow

Hi,

 

    You are right. tMap is a commonly used component.

 

   So if you have to add this additional column, this is the easiest method.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

Highlighted
Eleven Stars

Re: How to add time imormation to tLogRow

If you are using subscription version , in tLogRow , Print content with log4j

 

https://help.talend.com/reader/hCrOzogIwKfuR3mPf~LydA/qO19rPZd1rKnp_vfnV6s~w

Regards
Abhishek KUMAR
Highlighted
Six Stars

Re: How to add time imormation to tLogRow

Im using open stuio , not subscription version.
Highlighted
Six Stars

Re: How to add time imormation to tLogRow

Can I make tmap and tLogRow set as one module like subJob and use it , which has variety of inputs?

If you can, please teach me how to do this.

Highlighted
Employee

Re: How to add time imormation to tLogRow

Hi @coffeeno ,

 

     You cannot make these two components as a standalone component as these two components are always dependent on the previous components. So they will automatically merge with the previous components as a single flow. 

 

     In between, I am wondering why you are creating so much tLogrows for a job. The best practice is that you should minimize the printing of output and use them only if necessary. I could see that you are trying to print each and every flow through tLogrow.

 

    Could you please tell what is your ultimate objective of doing these printing of data to tLogrow?

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved :-)

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog