KennethScott / SpecOps

SpecOps is a web-based, centralized PowerShell script repository where non-technical users can run scripts via a user-friendly GUI.
Other
97 stars 6 forks source link

Serilog Logging not working? #8

Closed Domanaik closed 2 years ago

Domanaik commented 2 years ago

According to the Readme Serilog Logging should be used by default and log into the folder /logs In the precompiled release there is no folder logs. Even if I create it manually, I don't get any logs. I tried the following locations: root folder of SpecOps, Scripts and wwwroot

KennethScott commented 2 years ago

That's odd - I just downloaded the latest precompiled release, extracted it to a folder setup in IIS, and browsed to it. The only change I made was to grant myself admin access via the appsettings.json file (AppSettings:SecurityPolicies). As soon as I browsed to the site, it immediately created the logs folder and started writing to them. How did you setup the app in IIS exactly? Is it working as you expected aside from not logging?

Domanaik commented 2 years ago

Found it myself. I was using the default folder für IIS C:\inetpub\wwwroot\SpecOps and the Group IIS_IUSRS Group has only Read & execute rights per default which is enough the run scripts, but not enough to write logs.