Yes you will have to run it in a cluster mode to get the logs in storm/log 
folder.

More over in local if you want the logs you can redirect the system outs and 
error outs into any file of your
Eg : storm jar (your parameter) > topology.log 2>&1

Note : The example is valid only for local mode

Nilesh Chhapru,
Sr. Programmer - Technology
[cid:[email protected]]

•:  +91 22 66527303 (Direct) Extn : 1076 •: +91 9619030491
•   [email protected]<mailto:[email protected]>| 
• www.ugamsolutions.com
4th Floor, Building No 1, Ashar IT Park, MIDC,16 Z Road,
Wagle Industrial Estate, Thane West, Thane - 400604



From: Minqi Jiang [mailto:[email protected]]
Sent: 28 October 2014 01:14 PM
To: [email protected]
Subject: Re: How to use logback to log to a file?

I've run a few topologies in storm-starter locally. Do I need to run remotely 
in order for a logger to be created?

On Tue, Oct 28, 2014 at 12:29 AM, Itai Frenkel 
<[email protected]<mailto:[email protected]>> wrote:

It is probably created by the logger if you won't create it first. Have you run 
the supervisor/worker yet?

________________________________
From: Minqi Jiang <[email protected]<mailto:[email protected]>>
Sent: Monday, October 27, 2014 9:46 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: How to use logback to log to a file?

Where is the storm/logs folder located? I don't see a logs folder in 
storm/logs, where storm is the unzipped storm folder.

I also looked in ~/.m2/repository/org/apache/storm/ and do not see a logs 
folder.

On Mon, Oct 27, 2014 at 12:35 AM, Itai Frenkel 
<[email protected]<mailto:[email protected]>> wrote:

After installing storm, look at storm/logback/cluster.xml under the 
RollingFileAppender.

The log files are by default written to storm/logs folder

you can do a symbolic link before starting storm. For example if storm is 
unzipped in /opt/storm and you would like to log to /mylogs

ln -s -f /mylogs /opt/storm/logs



Regards,

Itai



________________________________
From: Minqi Jiang <[email protected]<mailto:[email protected]>>
Sent: Monday, October 27, 2014 8:27 AM
To: [email protected]<mailto:[email protected]>
Subject: How to use logback to log to a file?

Hi all,

I'm having trouble figuring out how to make Storm log to a file. From my 
understanding, the logback cluster.xml should specify the location of output 
logs. However, taking a look at this file, it seems the output path is 
specified as {storm.log.dir}. How can I find out what this value is?

I am running Storm locally for now on OS X 10.9.5. I looked inside the storm 
directly in ~/.m2/repository/ and do not see a directory called "log" or "logs".

Any help is much appreciated.

Thanks,
Minqi



________________________________
---------------------------------------------------------------------------------------Disclaimer----------------------------------------------------------------------------------------------

****Opinions expressed in this e-mail are those of the author and do not 
necessarily represent those of Ugam. Ugam does not accept any responsibility or 
liability for it. This e-mail message may contain proprietary, confidential or 
legally privileged information for the sole use of the person or entity to whom 
this message was originally addressed. Any review, re-transmission, 
dissemination or other use of or taking of any action in reliance upon this 
information by persons or entities other than the intended recipient is 
prohibited. If you have received this e-mail in error, please delete it and all 
attachments from any servers, hard drives or any other media.

Warning: Sufficient measures have been taken to scan any presence of viruses 
however the recipient should check this email and any attachments for the 
presence of viruses. Ugam accepts no liability for any damage caused by any 
virus transmitted by this email. ****

Reply via email to