GCAppArch  
                
                  
                    March 20, 2017,  6:24pm
                   
                  1 
               
             
            
              Hi
I have a problem with our es setup. Although we have configured the path.logs property in our config properties file, elastic continues to spew messages to /var/log/messages. The underlying file system ran out of disk space this weekend.
...
Can someone advise how to force elastic to only log to the directory denoted in the path.logs property?
             
            
              
            
           
          
            
              
                jaymode  
              
                  
                    March 20, 2017,  7:10pm
                   
                  2 
               
             
            
              How did you install elasticsearch and how are you configuring path.logs? What os?
             
            
              
            
           
          
            
              
                GCAppArch  
              
                  
                    March 20, 2017,  8:01pm
                   
                  3 
               
             
            
              I used the elasticsearch-5.2.0.tar.gz distribution. The OS RHELRed Hat Enterprise Linux Server 7.3 (Maipo), 3.10.0-514.6.1.el7.x86_64
I've set the path.logs property in a customized property file /opt/elastic/config/elasticsearch/elasticsearch.yml.
path.logs: /opt/elastic/logs/elasticsearch
./elasticsearch -Epath.conf=/opt/elastic/config/elasticsearch -p /opt/elastic/elasticsearch/5.2.0/bin/es.pid &
I can confirm that I do see several log files being written here as configured in the log4j properties file:
/opt/elastic/logs/elasticsearch/*
*.log
             
            
              
            
           
          
            
              
                GCAppArch  
              
                  
                    April 10, 2017,  3:23pm
                   
                  4 
               
             
            
              Does anyone have any ideas on this one? We are running into disk space issues almost weekly because of this.
Thanks
             
            
              
            
           
          
            
              
                system  
              
                  
                    May 8, 2017,  3:35pm
                   
                  5 
               
             
            
              This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.