Permission issues when monitoring log files

Posted over 10 years ago by Cedric Carter

Post a topic
Answered
C
Cedric Carter

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

 

0 Votes

A

Administrator posted over 10 years ago Admin 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



0 Votes


1 Comments

A

Administrator posted over 10 years ago Admin 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



0 Votes

Login to post a comment