Skip to content
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

Regex for Logs #383

Merged
merged 1 commit into from
Oct 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/amp/cli/test_samples/08-restart-stack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
restart-stack:
cmd: amp stack restart
cmd: amp stack start
args:
- stack1
options:
Expand Down
2 changes: 1 addition & 1 deletion cmd/amp/cli/test_samples/19-numbered-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ numbered-logs:
-
options:
- -n 10
expectation:
expectation: ([a-z0-9A-Z\.\-:\"\s\_\t\n\$&%?/\[\]\%\>\<\,\;]((.)|(\s)){10})
2 changes: 1 addition & 1 deletion cmd/amp/cli/test_samples/20-metadata-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata-logs:
-
options:
- -m
expectation:
expectation: ((timestamp:"[0-9A-Z\.\-:\"]{1,})(\s)(time_id:"[0-9A-Z\.\-:$\"]{1,})(\s)(service_id:"[a-z0-9$\"]{1,})(\s)(service_name:"[a-z0-9$\"]{1,})(\s)(message:"[a-zA-Z\./\-0-9:\s\_\t\n\$&%?/\[\]\%\>\<\,\;$\"]{1,})(\s)(container_id:"[a-z0-9$\"]{1,})(\s)(node_id:"[a-z0-9$\"]{1,})(\s)(task_id:"[a-z0-9$\"]{1,})(\s)(task_name:"[a-z\.0-9$\"]{1,})((.)|(\s)){1,}(.)*)
2 changes: 1 addition & 1 deletion cmd/amp/cli/test_samples/21-all-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ all-logs:
cmd: amp logs
args:
options:
expectation:
expectation: ([a-z0-9A-Z\.\-:\"\s\_\t\n$&%?/\[\]\%\>\<\,\;]((.)|(\s)){1,})