diff --git a/samples/manage/sql-assessment-api/notebooks/CustomizationSamples/CustomRuleCmdShellProbe.json b/samples/manage/sql-assessment-api/notebooks/CustomizationSamples/CustomRuleCmdShellProbe.json index 1311ebc1b8..c25b4df629 100644 --- a/samples/manage/sql-assessment-api/notebooks/CustomizationSamples/CustomRuleCmdShellProbe.json +++ b/samples/manage/sql-assessment-api/notebooks/CustomizationSamples/CustomRuleCmdShellProbe.json @@ -1,4 +1,4 @@ -{ +{ "schemaVersion": "1.0", "name": "CmdShell check", "version": "1.0.0", @@ -14,21 +14,30 @@ }, "displayName": "CmdShell probe", "description": "This is an example of cmdshell probe type. ", - "message": "Empty list", + "message": "File @{stdout.name} has size @{stdout.size} and it's bigger than threshold = @{threshold} bytes", "level": "Warning", - "condition": "@stdout", + "threshold": 1024, + "condition": { + "lt": [ + "@stdout.size", + "@threshold" + ] + }, "probes": [ - "ListOfDirectoryFilesAndSubdirectories" + { + "id": "ListOfDirectoryFiles", + "transform": { + "type": "parse", + "map": { + "stdout": "/^(?\\d\\d/\\d\\d/\\d\\d\\d\\d)\\s+(?