-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Gather and send coverage data * Add badges * Remove codecov and any codecov related files
- Loading branch information
Showing
4 changed files
with
40 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
# CISCO ISE Log Parser - Golang | ||
|
||
[](https://sonarcloud.io/dashboard?id=asecurityteam_cisco-ise-log-parser-go) | ||
[](https://sonarcloud.io/dashboard?id=asecurityteam_cisco-ise-log-parser-go) | ||
[](https://sonarcloud.io/dashboard?id=asecurityteam_cisco-ise-log-parser-go) | ||
[](https://sonarcloud.io/dashboard?id=asecurityteam_cisco-ise-log-parser-go) | ||
[](https://sonarcloud.io/dashboard?id=asecurityteam_cisco-ise-log-parser-go) | ||
[](https://sonarcloud.io/dashboard?id=asecurityteam_cisco-ise-log-parser-go) | ||
[](https://sonarcloud.io/dashboard?id=asecurityteam_cisco-ise-log-parser-go) | ||
[](https://sonarcloud.io/dashboard?id=asecurityteam_cisco-ise-log-parser-go) | ||
[](https://sonarcloud.io/dashboard?id=asecurityteam_cisco-ise-log-parser-go) | ||
[](https://sonarcloud.io/dashboard?id=asecurityteam_cisco-ise-log-parser-go) | ||
[](https://sonarcloud.io/dashboard?id=asecurityteam_cisco-ise-log-parser-go) | ||
|
||
|
||
## Adding new fields to the message parser | ||
|
||
For certain types, this can be a one or two line change. If the field you want to parse is in the retrieveParseFn switch, simply add it to the LogMessage struct. The parser will parse with the existing generic parse function. If the field has a name that won't be auto-formatted to the Upper-camel-case style by the formatKey function, map the JSON field name from the message CSV to the correctly formatted struct field name. | ||
|
||
If your field requires more complicated parsing, you will need to write a parse function that meets the valueParseFn definition, and then map the JSON field name to your custom parse function in the keyValueParseFuncMap. You can see examples of how to this by looking at the parseCiscoAVPair function. | ||
|
||
If you don't plan on forking this repo, you can find any field not included in the existing LogMessage struct in the UnexpectedFields map in the MessageDetails field. The key will be the JSON field name found in the message CSV. | ||
If you don't plan on forking this repo, you can find any field not included in the existing LogMessage struct in the UnexpectedFields map in the MessageDetails field. The key will be the JSON field name found in the message CSV. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sonar.organization=asecurityteam | ||
sonar.projectKey=asecurityteam_cisco-ise-log-parser-go | ||
|
||
sonar.sources=. | ||
sonar.exclusions=main.go, **/*_test.go | ||
|
||
sonar.tests=. | ||
sonar.test.inclusions=**/*_test.go | ||
|
||
sonar.go.coverage.reportPaths=.coverage/*.cover.out | ||
sonar.coverage.exclusions=**/test/**/*.* |