Sanitized LogGrabber for OBM/OMi

  • KM03718144
  • 28-Sep-2020
  • 12-May-2021

Summary

How to collect logs when there's sensitive information that cannot be shared such as IP addresses, hostnames, etc? In such scenarios you can create filters to replace the findings with some random text so you can keep your privacy.

Question

Collect a LogGrabber using the "Find and replace strings in files" option the <HPBSM>\tools\LogGrabber\go-gui.bat provides, so that you will remove any sensitive data from the logs like IP addresses, domain, hostnames. etc.
 
I'd recommend you give the UI version of LogGrabber double the memory as it has more work to do, so edit the go-gui.bat and change the following line:
 
From:
 
%JAVA_CMD% %JAVA_OPTS% -Xms16m -Xmx512m -classpath "%PRODUCT_HOME_PATH%\tools\LogGrabber\LogGrabber.jar;%LIB_DIR%\*;%JBOSS_DIR%\*"  -Dmerc.home=%PRODUCT_HOME_PATH%  com.mercury.topaz.logGrabber.gui.GrabberGui
 
To:
 
%JAVA_CMD% %JAVA_OPTS% -Xms16m -Xmx1024m -classpath "%PRODUCT_HOME_PATH%\tools\LogGrabber\LogGrabber.jar;%LIB_DIR%\*;%JBOSS_DIR%\*"  -Dmerc.home=%PRODUCT_HOME_PATH%  com.mercury.topaz.logGrabber.gui.GrabberGui
 
If you don't make the change above then you will see OutOfMemoryExceptions appear in the LogGrabber command prompt window when it runs.  The change needs to be made on all the OMi servers where you're going to collect logGrabbers from.
 
Once you're ready, run the go-gui.bat and follow these steps to create the filters.