Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
Charity Kathure 1af6920814
Rename Process Monitor Configuration Fields for Consistency (#185)
* change tagging

Signed-off-by: Charity Kathure <ckathure@microsoft.com>

---------

Signed-off-by: Charity Kathure <ckathure@microsoft.com>
Co-authored-by: Charity Kathure <ckathure@microsoft.com>
2024-08-23 12:22:02 +03:00
Charity Kathure d1d39d6a31
Customizable logs feature (#177)
* feat: adding support for legacy XML log output (#119)

* Custom Log Format  (#124)

* Make JSON the default log format

---------

Co-authored-by: Charity Kathure <ckathure@microsoft.com>

* Custom JSON Log Sanitization (#128)

---------

Co-authored-by: Charity Kathure <ckathure@microsoft.com>

* Formatting for scalar integer property values using TdhFormatProperty (#129)

---------

Co-authored-by: Bob Sira <bosira@microsoft.com>

* docs: configurable / custom log format (#136)

---------

Co-authored-by: Charity Kathure <ckathure@microsoft.com>

* fix process monitor formatting (#175)

---------

Co-authored-by: Charity Kathure <ckathure@microsoft.com>

* Process Monitor Custom Logging (#176)

Signed-off-by: Charity Kathure <ckathure@microsoft.com>

---------

Signed-off-by: Charity Kathure <ckathure@microsoft.com>
Co-authored-by: Charity Kathure <ckathure@microsoft.com>

* Resolve build error and lint issues, and add process monitor details into the docs

Signed-off-by: Charity Kathure <ckathure@microsoft.com>

---------

Signed-off-by: Charity Kathure <ckathure@microsoft.com>
Co-authored-by: Charity Kathure <ckathure@microsoft.com>
Co-authored-by: Bob Sira <sbobfitz2@gmail.com>
Co-authored-by: Bob Sira <bosira@microsoft.com>
Co-authored-by: Ian King'ori <kingorim.ian@gmail.com>
2024-07-24 14:45:42 +03:00
Tina Murimi 33b1a277e1
Only prepend if not root folder and validate directory source (#154) 2023-08-22 15:22:57 +01:00
Tina Murimi 09824043eb
fix: add waitInSeconds field to retry if folder/file does not exist (#149)
fixes #126
2023-07-26 11:44:08 +03:00
Anthony Nandaa a7d6465cb9 feat: refactor ETWMonitor code to easily support multiple output formats (#120) 2023-05-29 09:48:35 +03:00
Anthony Nandaa 13342ba4cd feat: json output as default for all the 4 log sources (#110)
* See the spec and schema details in the discussion here - #103

* This commit introduces outputting JSON log format as default for all the 4 source
 to improve the tools experience, interoperability and among the initial steps of making
 the tool fit well with other log analysis tools and platforms like Azure Monitor, ELK, etc.
2023-05-29 09:48:35 +03:00
Charity Kathure d76755c1f6
add unit test (#118)
Co-authored-by: Charity Kathure <ckathure@microsoft.com>
2023-01-26 10:47:56 +03:00
Ian King'ori 3d1f74eb40
Refactor Log File Monitor (#92)
* Refactor Log File Monitor
- moved log directory handle to utilities file
- moved create event lgoic and error handling to utilities file
- created an enqueue events function to centralize lock acquisition and releases plus filter out events by file name before adding them to the queue
- (fix) only read sub directory changes when include subfolders is true
- (fix) handle file monitor initialization logic bugs
2022-10-26 15:08:34 +03:00
Charity Kathure 90a525b877
feat: include log file name to every line streamed out (#88)
Co-authored-by: Bob Sira <Bob.Sira@microsoft.com>
Co-authored-by: Charity Kathure <ckathure@microsoft.com>
2022-10-14 11:04:44 +03:00
Charity Kathure 138c7b1eb1
Refactor StartMonitors (#73)
* first commit

* resolve linter warnings

* move function to another class and create a unit test for OpenConfigFile function

* add unit test and move open config file to configfileparser class

* amend unit test

* amend unit test

* add unit test and centralize logger settings

* shorten line

* un-do linter issue

* Change SAL Annotation

* amend unit test

* fix annotation

* add utility file

* remove un-necessary line of code

Co-authored-by: Charity Kathure <ckathure@microsoft.com>
2022-08-19 16:29:12 +03:00
Bob Sira a606ff534b
config file parser typo fixes (#72)
* config file parser typo fixes

* fixed test typo

* addded an extra quoatation

* reverting back because of tests breaks

* remove unnecessary escape

Co-authored-by: Bob Sira <Bob.Sira@microsoft.com>
Co-authored-by: Charity Kathure <ckathure@microsoft.com>
2022-08-18 10:03:52 +01:00
Charity Kathure 71114078b2
fix: add file name to logs (log file source) (#61)
Co-authored-by: Charity Kathure <ckathure@microsoft.com>

fixes #23 

The log file messages only contain the contents of the log files with no indication of the source of the content. This makes it hard to know where these messages are coming from. (Issue: #23 )

Some changes are required to include the file names when displaying contents of log files.
In the case of event logs, the message source is indicated in the Channel tag (application / system):
2022-07-14 12:01:55 +03:00
Ian King'ori 886f60b9b0
fix: add x86 build, update azure build agent and platform toolset (#60)
* update windows build environment

* use windows 2019 build agent

* Update azure-pipelines.yml for Azure Pipelines

* use windows-2019 image

* rerun failed tempts to catch transient failures

* update windows sdk version

* update to windows 2022 build agent and 10.0 sdk

* revert to Windows 2019 agent

* add x86 build job

* fix build platform

* restore component governance task

* update readme build status badge

Co-authored-by: Ian King'ori <iakingor@microsoft.com>
2022-07-07 15:44:35 +03:00
Alexander Gama Espinosa f755f932fe
Added tests for EventLog Monitor and ETW Monitor (#13) 2019-11-06 09:09:33 -08:00
Alexander Gama Espinosa ab3c235253
Replace tabs with whitespaces (#6) 2019-10-29 13:50:05 -07:00
Alexander Gama Espinosa 3215488d35
Etw Monitor Fixes (#5) 2019-10-29 13:21:53 -07:00
Manoj Kadam 30ae029613
Added precompiled header and code to enable event log channel (#4)
* Added code to enable event log provider and fixed pre compiled header file

* Fixed tests compilation issues

* Fixed comments
2019-10-28 15:52:01 -07:00
Alexander Gama Espinosa 78a63642a9
Add log file monitor tests (#3) 2019-10-28 11:00:19 -07:00
Alexander Gama Espinosa 8125416777
Add tests for ConfigFileParser (#1) 2019-10-24 09:37:26 -07:00