Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] save output in run-window to txt file

Hi All
Can I save output in run-window to txt file ?
Try to do it through Stats&logs settings
but only statistics gathered (may be also log)
2012-10-05 18:10:28;TCd7dK;TCd7dK;TCd7dK;6132;THINKBI_DEV;j_java01;_b-_1UA4iEeKoMfxGjj3v1A;0.1;Default;;begin;;
and I need full output
including logrow and print in java

Labels (2)
37 Replies
Anonymous
Not applicable
Author

Hi shong
I do not agree with you in the matter of redirecting the standard output to file as component.
I would suggest to integrate a fully up-to-date Log4J in Talend.
This would be much more helpful because we are very flexible. Unlike no it is a mess to switch debugging output on without changing the job.
Cheers
Jan
Anonymous
Not applicable
Author

Totally agree, full Log4J integration would be perfect and allows us to redirect to whatever we want, in whatever format we want.
_AnonymousUser
Specialist III
Specialist III

I'm trying to use 'tRedirectOutput' and it is not working fine for me. I can't redirect the "System.setOut" or "System.setError" to another file that is not the default configuration file defined in the component:

Exception in component tRedirectOutput_1
java.io.FileNotFoundException: /talend/opt/talend-jobs/ESPThunderheadBatchInput/C:/Talend/components/out (No such file or directory)

That path is defined in the component as "__COMP_DEFAULT_FILE_DIR__" and I'm trying to use a context variable that is being ignored.
Any idea? Any comment?
Btw: I'm using version 0.2 of the component.
_AnonymousUser
Specialist III
Specialist III

I'm trying to use 'tRedirectOutput' and it is not working fine for me. I can't redirect the "System.setOut" or "System.setError" to another file that is not the default configuration file defined in the component:

Exception in component tRedirectOutput_1
java.io.FileNotFoundException: /talend/opt/talend-jobs/ESPThunderheadBatchInput/C:/Talend/components/out (No such file or directory)

That path is defined in the component as "__COMP_DEFAULT_FILE_DIR__" and I'm trying to use a context variable that is being ignored.
Any idea? Any comment?
Btw: I'm using version 0.2 of the component.

You can ignore my previous comment. It was another process running at the same time, that was creating the chaos.
Anonymous
Not applicable
Author

Hi,
I am trying to download tRedirectOutput component from the link provided above. Download generated one file tRedirectOuput without any extension. Is it a ZIP file? or Do I need to use any software to extract this? Can any one let me know how to open this please?
Sorry this might be basic query but this is the first time I am downloading a new component.
Thanks in advance for your help!
Please see the file that is downloaded.
Anonymous
Not applicable
Author

Hi all,
Is there way from which I can write all the log files that come in the run console to a text file??
"tRedirectOutput" this component I am able to download,but it'snot coming in the form of a ZIP file rather a single file,So I am not able to use this component ,please check and suggest some ways to solve this issue?
Anonymous
Not applicable
Author

Hi 
If the download file is not a zip file, rename it as filename.zip and then unzip the archive file, refer to this KB article to install a custom component into Talend Studio. 
Anonymous
Not applicable
Author

I updated the component with the options suggested by Shong. Thank you man.
Feel free to suggest other additions if you think it may help others.
You can download it here:

Check attached image for the new options.

Thanks for sharing this component. it is really useful!
_AnonymousUser
Specialist III
Specialist III

Hi all,
I am new in the Forum. I downloaded tRedirectOutput and saw, that the Component works only in a Job with console-outputs. If I have a parent job without outputs and subjobs with outputs, than I couldn't use the Component from the parent job. Is it so? Have you experiences?
Anonymous
Not applicable
Author

Hi all,
I am new in the Forum. I downloaded tRedirectOutput and saw, that the Component works only in a Job with console-outputs. If I have a parent job without outputs and subjobs with outputs, than I couldn't use the Component from the parent job. Is it so? Have you experiences?

Hi Eduard 
The component should be used in each job where you need to redirect its output to a file.
Regards
Shong