You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+53-11Lines changed: 53 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,11 @@
1
-
# Windows Azure Diagnostics to CSV
1
+
# Azure Diagnostics to CSV
2
2
3
-
`.NET Core`[global tool][dotnet-global-tools] to retrieve logs from a `WADLogsTable` and write them to a `CSV` file.
4
-
5
-
The tool will attempt to obfuscate settings that have been logged due to this [issue][github-issue] in the [Microsoft.WindowsAzure.ConfigurationManager][configuration-manager-nuget].
3
+
`.NET Core`[global tools][dotnet-global-tools] to retrieve Azure Diagnostics logs from a `WADLogsTable` or blobs and write them to a `CSV` file.
@@ -49,6 +52,41 @@ The tool will prompt you for a [Shared Access Signature][sas] so that it doesn't
49
52
-`Container` and `Object` resource types
50
53
- A short expiration time
51
54
55
+
`WAD to CSV` will attempt to obfuscate settings that have been logged due to this [issue][github-issue] in the [Microsoft.WindowsAzure.ConfigurationManager][configuration-manager-nuget].
-`<last>`: based on the `time designator` of the [ISO 8601 durations][iso-8601-duration]. This duration is then substracted from the current `UTC` time. For example:
72
+
-`5M`: get all the logs for the last `5`**minutes**
73
+
-`1H`: get all the logs for the last `1`**hour**
74
+
- You can combine them too if you feel like it, i.e. `2H3M5S` would get all the logs for the last `7385`**seconds**
75
+
-`<from>`: `ISO 8601 date time` expressed in `UTC`. Cannot be combined with `<last>`, can be combined with `<to>`.
76
+
- Valid date time: `2018-06-24T23:12:15`
77
+
- The time component can be omitted: `2018-06-24`
78
+
-`<to>`: `ISO 8601 date time` expressed in `UTC`. Must be be combined with `<from>`.
79
+
-`<output-file-path>`: where you wish to write the output file, does not need to exist but should be valid. If a file exists with the same name it will be replaced.
80
+
-`<container>`: The name of the container. For `https://account.blob.core.windows.net/container-name/prefix/2018/06/22/00/e872fe-54660.applicationLog.csv`, the container name is `container-name`.
81
+
-`<prefix>`: The prefix (if any). For `https://account.blob.core.windows.net/container-name/prefix/2018/06/22/00/e872fe-54660.applicationLog.csv`, the prefix is `prefix`.
82
+
83
+
The tool will prompt you for a [Shared Access Signature][sas] so that it doesn't get saved to your `CLI` history. I recommend you restrict the `SAS` to:
84
+
85
+
-`Read` and `List` permissions
86
+
-`Blobs` service
87
+
-`Container` and `Object` resource types
88
+
- A short expiration time
89
+
52
90
## Output file format
53
91
54
92
```csv
@@ -57,7 +95,7 @@ Generated,Level,Message
57
95
```
58
96
59
97
-`Generated` is expressed in `UTC`
60
-
- The `Level` is converted from the `Level` column:
98
+
- The `Level` is written as-is for blobs and converted from the `Level` column for the `WADLogsTable`:
0 commit comments