Re[7]: Where are the log files...
Hello Brian, Your suggestion works. Now I'm able to log solr output to a file. I haven't figured out how to enable Jetty logging in solr 1.2, though. But solr logs just fine. -- Best regards, Jack Friday, June 15, 2007, 1:38:13 PM, you wrote: > ...all you have to do is create a logging.properties file and call > this before starting up solr: > System.setProperty("java.util.logging.config.file", home+"/conf/ > logging.properties"); > ...
Re[6]: Where are the log files...
: Yes, I do see the logs printed to the console. Since it's a unix : box, I then close the terminal after starting up solr. When a problem : happens, such as that solr no longer responds, I hope to be able to : to check the log files to see what happened. ah ... okay, i understand where you are coming from. at a minimum i would change your "startup" methodology to include redirecting stderr/stdour to afile so you don't completley lose the console when closing the terminal used to start the process. but in general i would look into how to configure java standard logging of webapps in Jetty .. the settings you found in the jetty.xml probably only relate to logging from the core Jetty classes. : It's probably a Java logger setting problem. I just saw Brian's reply. : I'll give that a try. his suggestions looked like they make sense for standalone java apps, but when running in a servlet container it may not always work -- the servlet container is totally within it's purview to do things that may prevent techniques like that from working. breifly skimming this webpage leads me to believe Jetty won't interfeer with any JDK logging properties you may choose to set, so it would probably work fine. http://jetty.mortbay.org/jetty5/tut/logging.html -Hoss
Re[6]: Where are the log files...
Hello Chris, Yes, I do see the logs printed to the console. Since it's a unix box, I then close the terminal after starting up solr. When a problem happens, such as that solr no longer responds, I hope to be able to to check the log files to see what happened. It's probably a Java logger setting problem. I just saw Brian's reply. I'll give that a try. -- Best regards, Jack Friday, June 15, 2007, 1:43:51 PM, you wrote: > : Also, the jetty log only logs web server activities, not solr > : activities. Is there a way to configure solr to log to a file? > Solr logs LogRecords to a Java Logging Logger -- the servlet container > controls where those LogRecords go. > I'm really not sure how you are running Jety, but when i go to the stock > "example" directory that comes with Solr 1.2, and type "java -jar > start.jar" I see all of the Solr log messages written to my console via > Jetty's STDERR ... if you leave the jetty.xml file alone, and run jetty in > the same way (java -jar start.jar), do you see the Solr log messages? > if not, then i'm not sure what is going on. > if you do: then how is this differnet from what you've been doing where > you don't get any messages? (i'm not a jetty expert, i can't give you any > particular advice on log configuration in jetty, i just know that the > sample jetty configs we've got log everything to STDERR) > -Hoss
Re[5]: Where are the log files...
: Also, the jetty log only logs web server activities, not solr : activities. Is there a way to configure solr to log to a file? Solr logs LogRecords to a Java Logging Logger -- the servlet container controls where those LogRecords go. I'm really not sure how you are running Jety, but when i go to the stock "example" directory that comes with Solr 1.2, and type "java -jar start.jar" I see all of the Solr log messages written to my console via Jetty's STDERR ... if you leave the jetty.xml file alone, and run jetty in the same way (java -jar start.jar), do you see the Solr log messages? if not, then i'm not sure what is going on. if you do: then how is this differnet from what you've been doing where you don't get any messages? (i'm not a jetty expert, i can't give you any particular advice on log configuration in jetty, i just know that the sample jetty configs we've got log everything to STDERR) -Hoss
Re: Re[5]: Where are the log files...
On Jun 15, 2007, at 4:35 PM, Jack L wrote: Is there a way to configure solr to log to a file? ...all you have to do is create a logging.properties file and call this before starting up solr: System.setProperty("java.util.logging.config.file", home+"/conf/ logging.properties"); (you can set this on the java commandline or in your servlet container) Your logging.properties file can look like this: --- handlers= java.util.logging.FileHandler # Default global logging level. .level= INFO # default file output is in user's home directory. java.util.logging.FileHandler.pattern = %h/Library/Application\ Support/Your Company/solr%u.log java.util.logging.FileHandler.limit = 5 java.util.logging.FileHandler.count = 1 java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
Re[5]: Where are the log files...
Hello Chris, With Solr 1.1, after I uncomment the logging portion of jetty.xml, jetty starts to write to log files. But that part of jetty.xml disappears in Solr 1.2, which uses a new version of Jetty. So, I still don't know how to enable Jetty logging in Solr 1.2. (The query log works, not the web server/container log.) Also, the jetty log only logs web server activities, not solr activities. Is there a way to configure solr to log to a file? -- Best regards, Jack Thursday, June 14, 2007, 10:59:58 PM, you wrote: > : But I've just notice that in jetty.xml, I have to uncomment some > : lines to enable jetty logging. It's commented out by default. > : I haven't tried this yet though. > the sample instance of Jetty that comes in Solr releases is setup to write > Logging messages to stdout. It is not a recomeneded Jetty configuration > for production use -- everything about it is designed for ease of use on > the command line. : >>> But I didn't find *.log in the whole solr directory. : >>> Is jetty putting the log files outside the directory? > every servlet container is differnet -- but unless you explicitly > configure a servlet container to write it's log files somwhere in your > Solr directory it's not even going to know it exists (let alone put logs > there) > -Hoss
Re[4]: Where are the log files...
: But I've just notice that in jetty.xml, I have to uncomment some : lines to enable jetty logging. It's commented out by default. : I haven't tried this yet though. the sample instance of Jetty that comes in Solr releases is setup to write Logging messages to stdout. It is not a recomeneded Jetty configuration for production use -- everything about it is designed for ease of use on the command line. : >> But I didn't find *.log in the whole solr directory. : >> Is jetty putting the log files outside the directory? every servlet container is differnet -- but unless you explicitly configure a servlet container to write it's log files somwhere in your Solr directory it's not even going to know it exists (let alone put logs there) -Hoss
Re[4]: Where are the log files...
There's no logs there :) But I've just notice that in jetty.xml, I have to uncomment some lines to enable jetty logging. It's commented out by default. I haven't tried this yet though. -- Best regards, Jack Thursday, June 14, 2007, 6:21:42 PM, you wrote: > maybe u will find it in *apache-solr-1.2.0\example\logs* > and I not use jetty. > 2007/6/15, Jack L <[EMAIL PROTECTED]>: >> >> Yeah, I'm running 1.1 with jetty. >> >> But I didn't find *.log in the whole solr directory. >> Is jetty putting the log files outside the directory? >> >> > what version of solr/container are you running? >> >> > this sounds similar to what people running solr 1.1 with the jetty >> > include in that example... >> >> >> > Jack L wrote: >> >> It happened twice in the past few days that the solr instance stopped >> >> responding (the admin page does not load) while the process was still >> >> running. I'd like to find out what's causing this. I notice that I can >> >> change logger level from admin page but I didn't figure out where the >> >> log files are. Search on solr wiki and internet didn't help... >> >> >> >>
Re: Re[2]: Where are the log files...
maybe u will find it in *apache-solr-1.2.0\example\logs* and I not use jetty. 2007/6/15, Jack L <[EMAIL PROTECTED]>: Yeah, I'm running 1.1 with jetty. But I didn't find *.log in the whole solr directory. Is jetty putting the log files outside the directory? > what version of solr/container are you running? > this sounds similar to what people running solr 1.1 with the jetty > include in that example... > Jack L wrote: >> It happened twice in the past few days that the solr instance stopped >> responding (the admin page does not load) while the process was still >> running. I'd like to find out what's causing this. I notice that I can >> change logger level from admin page but I didn't figure out where the >> log files are. Search on solr wiki and internet didn't help... >> -- regards jl
Re[2]: Where are the log files...
Yeah, I'm running 1.1 with jetty. But I didn't find *.log in the whole solr directory. Is jetty putting the log files outside the directory? > what version of solr/container are you running? > this sounds similar to what people running solr 1.1 with the jetty > include in that example... > Jack L wrote: >> It happened twice in the past few days that the solr instance stopped >> responding (the admin page does not load) while the process was still >> running. I'd like to find out what's causing this. I notice that I can >> change logger level from admin page but I didn't figure out where the >> log files are. Search on solr wiki and internet didn't help... >>
Re: Where are the log files...
if u use jetty, u should see jetty's log. if u use tomcat, u should see tomcat's log. solr is only a program that run with container. 2007/6/15, Ryan McKinley <[EMAIL PROTECTED]>: what version of solr/container are you running? this sounds similar to what people running solr 1.1 with the jetty include in that example... Jack L wrote: > It happened twice in the past few days that the solr instance stopped > responding (the admin page does not load) while the process was still > running. I'd like to find out what's causing this. I notice that I can > change logger level from admin page but I didn't figure out where the > log files are. Search on solr wiki and internet didn't help... > -- regards jl
Re: Where are the log files...
what version of solr/container are you running? this sounds similar to what people running solr 1.1 with the jetty include in that example... Jack L wrote: It happened twice in the past few days that the solr instance stopped responding (the admin page does not load) while the process was still running. I'd like to find out what's causing this. I notice that I can change logger level from admin page but I didn't figure out where the log files are. Search on solr wiki and internet didn't help...
Where are the log files...
It happened twice in the past few days that the solr instance stopped responding (the admin page does not load) while the process was still running. I'd like to find out what's causing this. I notice that I can change logger level from admin page but I didn't figure out where the log files are. Search on solr wiki and internet didn't help... -- Best regards, Jack