Run your dos/windows proccess with full traceability
C:\>c:\Projects\procExecLog\procExecLog.bat "My Description" dir /s /r c:\
127.0.0.1 - U001009 [20/10/2020 22:46:09,59] "POST https://command/dir HTTP/1.1" 200 255000 cmd=dir+/s+/r+c:\ - 255000 "-" "20/10/2020 22:50:24,67 00:04:15,08 SUCCESS 0 "My Description" [dir /s /r c:\] []"
To full traceability the scrip write log information in this channels:
- log file.
\procExecLog\log\access-20201018.log
- slack. See session slack config.
- event viewer. Need user permission to write event viewer errors.
To sent slack message you need:
- curl for windows
- unpack zipfile in
procExecLog
dir. - the script search
curl\bin\curl.exe
inprocExecLog
dir.
- unpack zipfile in
- create the file
config-slack.bat
with the sample::: slack parameters config :: - slack webhook url SET SLACK_URL=https://hooks.slack.com/services/FFFFFFFFF/aaaaaaaaa/cccccccccccccccccccccccc :: - notification icon SET SLACK_ICON=:computer: :: - success icon SET SLACK_SUCCESS=:sunrise: :: - error icon SET SLACK_ERROR=:bomb: :: - otification channel SET SLACK_CHANNEL=#sandbox
The log is write with a Common Log Format. Is possible make report with GoAccess!
cat access.log | goaccess --date-format='%d/%m/%Y' --time-format='%H:%M:%S' --log-format='%h %^ %e [%d %t,%^] "%m %U %H" %s %b %q %^ %L %^' >out.html