<style type="text/css">a[data-mtli~="mtli_filesize773b"]:after {content:" (773 b)"}</style><style type="text/css">a[data-mtli~="mtli_filesize773b"]:after {content:" (773 b)"}</style>{"id":4384,"date":"2019-03-27T14:08:27","date_gmt":"2019-03-27T13:08:27","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=4384"},"modified":"2019-03-27T14:08:27","modified_gmt":"2019-03-27T13:08:27","slug":"dynamic-log-monitoring-windows","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/dynamic-log-monitoring-windows\/","title":{"rendered":"Dynamic Log Monitoring Windows"},"content":{"rendered":"<p>Plugin to monitor dynamic logs. Regular expressions can be used to match the file name and to match the content inside.\u00a0 Plugin execution inside agent configuration file:<\/p>\n<p>module_plugin powershell.exe -f &#8220;dynamic_log_windows.ps1&#8221; &#8220;&lt;grep_log_plugin_location&gt;&#8221; &#8220;&lt;path_to_logs&gt;&#8221; &#8220;&lt;log_name_regular_expression&gt;&#8221; &#8220;&lt;module_name&gt;&#8221; &#8220;&lt;string_to_match&gt;&#8221;<\/p>\n<p>An example of plugin execution:<\/p>\n<p>module_plugin powershell.exe -f &#8220;dynamic_log_windows.ps1&#8221; &#8220;C:Program Filespandora_agentutilgrep_log.exe&#8221; &#8220;C:Users&#8221; &#8220;(.*).log&#8221; &#8220;module_name&#8221; &#8220;error&#8221;<\/p>\n<p>grep_log.exe plugin is required<\/p>\n<p><a href=\"https:\/\/pandorafms.com\/library\/wp-content\/uploads\/2019\/02\/dynamic_log_windows.zip\" class=\"mtli_attachment mtli_zip\" data-mtli=\"mtli_filesize773b\">dynamic_log_windows<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Plugin to monitor dynamic logs. Regular expressions can be used to match the file name and to match the content inside.\u00a0 Plugin execution inside agent configuration file: module_plugin powershell.exe -f &#8220;dynamic_log_windows.ps1&#8221; &#8220;&lt;grep_log_plugin_location&gt;&#8221; &#8220;&lt;path_to_logs&gt;&#8221; &#8220;&lt;log_name_regular_expression&gt;&#8221; &#8220;&lt;module_name&gt;&#8221; &#8220;&lt;string_to_match&gt;&#8221; An example of plugin execution: module_plugin powershell.exe -f &#8220;dynamic_log_windows.ps1&#8221; &#8220;C:Program Filespandora_agentutilgrep_log.exe&#8221; &#8220;C:Users&#8221; &#8220;(.*).log&#8221; &#8220;module_name&#8221; &#8220;error&#8221; grep_log.exe plugin is required [&hellip;]<\/p>\n","protected":false},"author":223,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[19],"tags":[],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/4384"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/223"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=4384"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/4384\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=4384"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=4384"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=4384"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}