This file contains hidden or 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
| { | |
| "_account_id": "12345", | |
| "_fluentd_host": "ip-n-n-n-n", | |
| "_instance_id": "i-0e4459876c3ad679c", | |
| "_tag": "observe.tail.jenkins", | |
| "_time": "2022-06-30 14:46:41.951628404 -0700", | |
| "message": "[server] 6/30/2022 - 9:46:41 PM - \u001b[32minfo\u001b[39m: 9kn9uvygxcuwagaj4fc667jluh6mc3e5 - URL - /releases/localdev/mainapp/icons-chrome~835610e3.js", | |
| "path": "/var/lib/jenkins/jobs/master-periodic-integration-cypress-test/builds/3522/log" | |
| } |
This file contains hidden or 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
| extract_regex path, /\/var\/lib\/jenkins\/jobs\/(?P<jobName>[^\/]+)\/builds\/(?P<buildId>\d+)\/log/ |
This file contains hidden or 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
| make_col query_text_revised:replace_regex(QUERY_TEXT, /\s+/, ' ') | |
| make_col whitespace_updated:if(QUERY_TEXT = query_text_revised, false, true) |
This file contains hidden or 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
| make_col QUERY_TEXT:replace_regex(QUERY_TEXT, /\s+/, ' ') |
This file contains hidden or 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
| make_col ip_list:match_regex_all(string(log), /([0-9]{1,3}\.){3}[0-9]{1,3}/) |
This file contains hidden or 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
| // Look for these two error messages: | |
| // The first is a request that failed to send at all | |
| // The second is a request that got a response, but it was an error | |
| filter msg1 ~ /Error sending triggered notification webhook request | Status code not successful when sending triggered notification webhook request/ | |
| // Identify which type of error by looking for "Status code" | |
| // New field msg2 contains a new, shorter, message | |
| make_col msg2:if(match_regex(msg1,/Status code/),"Response Error", "Sending Error") |
This file contains hidden or 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
| colmake data:split(data, "\n") | |
| flattenall data | |
| colmake data:parsejson(string(@."_c_data_value")) | |
| filter not isnull(data) | |
| colmake ts:timestamp_ms(int64(data.timestamp)) | |
| setvf ts | |
| // ref https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-metric-streams-formats-json.html | |
| colpick | |
| timestamp:ts, | |
| account_id:string(data.account_id), |
This file contains hidden or 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
| #!/bin/bash | |
| repo="git@github.com:gonzolively/dotfiles.git" | |
| git clone --bare $repo $HOME/.dotfiles | |
| function config { | |
| /usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@ | |
| } |
This file contains hidden or 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
| #!/bin/sh | |
| # If any part of the script fails the deploy stops | |
| set -e | |
| # Status message | |
| printf "\033[0;32mDeploying updates to GitHub…\033[0m\n" | |
| # Build the project. | |
| hugo |
NewerOlder