LogMessageEvents setting in Sandboxie Plus

Discussion in 'Sandboxie (SBIE Open Source) Plus & Classic' started by stapp, Dec 8, 2024.

  1. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    27,166
    Location:
    UK
    In David's post here....

    https://www.wilderssecurity.com/threads/sandboxie-plus-1-15-2.455497/

    It says ''By enabling “LogMessageEvents” in the global settings, all Sandboxie events can now be logged directly to the system event log for better tracking and analysis''

    Where exactly is this setting? I even tried editing the ini to put it there (which resulted in error 1405 syntax error)

    Sorry if it is obvious but I couldn't find it :(
     
  2. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    507
    Code:
    LogMessageEvents=y
     
  3. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    27,166
    Location:
    UK
    Thank you :)
     
  4. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    27,166
    Location:
    UK
    @busy
    Win 10 logs show under System.
    Win 11 24h2 I cannot find them at all, are they kept somewhere else ?
     
  5. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    507
    @stapp I tested on VM and it seemed to work just fine. SBIE1308 and SBIE1321
     
  6. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    27,166
    Location:
    UK
    @busy
    Today using Win 10 the Win Event Viewer under Windows Logs-System shows

    SBIE1101 Sandboxie driver (SbieDrv) version 5.70.4 initialized (should it show that for 1 .15.4 ?)

    Win 11 shows nothing at all.

    Why do you mention SBIE1308 and SBIE1321 ?

     
  7. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    507
    Sandboxie driver: 1.15.4 corresponds to the UI version of Sandboxie Plus. Drv, Svc, and DLL versions are different.

    Unreleated: You don't need this anymore: "OnBoxDelete=%SystemRoot%\System32\cmd.exe /c RMDIR /s /q "%SANDBOX%""

    Win 11 shows nothing at all. Let me check again in the virtual machine then.

    Why do you mention SBIE1308 and SBIE1321 ? I haven't tried any messages other than those two maybe you're referring to a message that's different from these.
     
  8. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    27,166
    Location:
    UK
    @busy
    Just for info I installed 1.15.4 on Win 11 24H2 through the user interface message and not from a download and 'over the top' install.
    That's when I tried the Windows log thing .
     
  9. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    507
    @stapp Powershell> Get-EventLog -LogName System -Source SbieSvc -Newest 100

    Does the above command return any results?
     
  10. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    27,166
    Location:
    UK
    @busy
    Get-EventLog : No matches found
    At line:1 char:1
    + Get-EventLog -LogName System -Source SbieSvc -Newest 100
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: :)) [Get-EventLog], ArgumentException
    + FullyQualifiedErrorId : GetEventLogNoEntriesFound,Microsoft.PowerShell.Commands.GetEventLogCommand
     
  11. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    507
    @stapp The setting only logs messages that start with "SBIE." To check, follow these steps:
    1. Create a new sandbox.
    2. Add the line "NotifyNoCopy=y" to the box configuration.
    3. Launch a sandboxed "Windows Explorer" in the box.
    4. This will trigger a series of SBIE2113 messages in the message log.
    5. Afterward, use the PowerShell command to check if its working.
    Code:
    Get-EventLog -LogName System -Source SbieSvc -Newest 10
     
  12. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    27,166
    Location:
    UK
    @busy
    That worked.
    So will I be able to see error messages for other boxes now?
     
  13. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    507
    @stapp Some SBIE messages are not enabled by default. Only the enabled messages are logged. The settings you enable from GlobalSettings will apply to all boxes.
     
  14. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    27,166
    Location:
    UK
    Thanks for all the help :)
    Hopefully it will help other users too who want to use that setting.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.