-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
W3C plugin #307
Merged
W3C plugin #307
Conversation
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
4 tasks
You can test this plugin by building this branch observIQ/stanza#404 |
ericwholt
suggested changes
Aug 24, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the following config:
- type: w3c
file_log_path:
- /Users/ericholt/bindplane/bplogagent-dev/msiis-logs/iis.log
header_delimiter: " "
delimiter: " "
start_at: beginning
IIS Logs Output:
{
"timestamp": "2021-08-23T21:48:43.197971-04:00",
"severity": 0,
"labels": {
"Date": "2020-11-03 16:13:15",
"Software": "Microsoft Internet Information Services 10.0",
"Version": "1.0",
"file_name": "iis.log",
"log_type": "w3c",
"plugin_id": "w3c"
},
"record": {
"c-ip": "10.0.0.2",
"cs(Referer)": "-",
"cs(User-Agent)": "Go-http-client/1.1",
"cs-method": "GET",
"cs-uri-query": "-",
"cs-uri-stem": "/status",
"cs-username": "-",
"date": "2020-11-03",
"s-ip": "10.0.0.1",
"s-port": "80",
"sc-status": "404",
"sc-substatus": "0",
"sc-win32-status": "2",
"time": "16:13:15",
"time-taken": "1"
}
}
jhowellbm
approved these changes
Aug 25, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I can help test this. It depends on a release that does not exists (yet) Stanza v1.1.9. You will need to comment
min_stanza_version
for now. You can test with a dev branch of stanza, I can help set you up.The W3C plugin wraps the CSV parser, making use of dynamic field names
Fields
label to determine the CSV field names dynamically, for every entry.This allows the user to read arbitrary W3C files without specifying the field names.