Technically, Solr doesn't name the file at all, that's in your log4j config, this line:
log4j.appender.file.File=${solr.log}/solr.log so it's weird that you can't find it on your machine at all. How do you _start_ Solr? In particular, to you define a system variable "-Dsolr.log=some_path"? And also note that there are three log4j configs, and it's easy to be using one you don't think you are using, see SOLR-12008. Best, Erick On Mon, Apr 2, 2018 at 10:02 AM, Abhi Basu <9000r...@gmail.com> wrote: > Not located in the /server/logs/ folder. > > Have these files instead > > solr-8983-console.log > solr_gc.log.0.current > > I can see logs from the Solr dashboard. Where is the solr.log file going > to? A search of "solr.log" in the system did not find the file. > > Is the file called something else for solrcloud mode? > > log4j.properties shows this: > > # Default Solr log4j config > # rootLogger log level may be programmatically overridden by > -Dsolr.log.level > solr.log=${solr.log.dir} > log4j.rootLogger=INFO, file, CONSOLE > > # Console appender will be programmatically disabled when Solr is started > with option -Dsolr.log.muteconsole > log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender > log4j.appender.CONSOLE.layout=org.apache.log4j.EnhancedPatternLayout > log4j.appender.CONSOLE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} > %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n > > #- size rotation with log cleanup. > log4j.appender.file=org.apache.log4j.RollingFileAppender > log4j.appender.file.MaxFileSize=4MB > log4j.appender.file.MaxBackupIndex=9 > > #- File to log to and log format > log4j.appender.file.File=${solr.log}/solr.log > log4j.appender.file.layout=org.apache.log4j.EnhancedPatternLayout > log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} > %-5p (%t) [%X{collection} %X{shard} %X{replica} %X{core}] %c{1.} %m%n > > # Adjust logging levels that should differ from root logger > log4j.logger.org.apache.zookeeper=WARN > log4j.logger.org.apache.hadoop=WARN > log4j.logger.org.eclipse.jetty=WARN > log4j.logger.org.eclipse.jetty.server.Server=INFO > log4j.logger.org.eclipse.jetty.server.ServerConnector=INFO > > # set to INFO to enable infostream log messages > log4j.logger.org.apache.solr.update.LoggingInfoStream=OFF > > > Thanks, > > Abhi > > -- > Abhi Basu