Start a new topic
Answered

Permission issues when monitoring log files

How to fix a Log monitoring failure due to lack of permissions with the files to be monitored?

 


Best Answer

Execute log monitoring with sudo permission

 

Steps to enable Sudo permission for Log monitoring:

 

  • Edit eg_specs.ini and add the below highlighted entries for Log monitor test

 

LogMonitorTest::$hostName:$portNo=$hostName,-auto,-host $hostIp -port $portNo -lines 0:0 -rotatingFile false -alertFile $unconfigured -overwrittenFile false -rolloverFile false -searchPattern $unconfigured -useUTF8 false -useUTF16 false -excludePattern none -uniqueMatch false -caseSensitive false -encodeFormat none -ddFreq 1:1 -use_sudo false -sudo_path none -rptName $hostName -mCount 1,300


  • Exclude and include Log monitor test from eG test configuration


  • Set the parameter for “use sudo to True”, and make sure that the “eG user” is a part of sudoes group with no password for login



1 Comment

Answer

Execute log monitoring with sudo permission

 

Steps to enable Sudo permission for Log monitoring:

 

  • Edit eg_specs.ini and add the below highlighted entries for Log monitor test

 

LogMonitorTest::$hostName:$portNo=$hostName,-auto,-host $hostIp -port $portNo -lines 0:0 -rotatingFile false -alertFile $unconfigured -overwrittenFile false -rolloverFile false -searchPattern $unconfigured -useUTF8 false -useUTF16 false -excludePattern none -uniqueMatch false -caseSensitive false -encodeFormat none -ddFreq 1:1 -use_sudo false -sudo_path none -rptName $hostName -mCount 1,300


  • Exclude and include Log monitor test from eG test configuration


  • Set the parameter for “use sudo to True”, and make sure that the “eG user” is a part of sudoes group with no password for login



Login to post a comment