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
#!/bin/bash --posix | |
docker logs snowflake-proxy 2>&1 | grep --color=auto 'Traffic Relayed' | awk ' | |
{ | |
# Extract the download and upload values | |
down[1] = $14 | |
down[2] = $15 | |
gsub(/[^a-zA-Z]/, "", down[2]) | |
up[1] = $17 | |
up[2] = $18 |
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
#!/bin/bash --posix | |
docker logs snowflake-proxy 2>&1 | grep --color=auto 'Traffic Relayed' | awk ' | |
{ | |
# Extract the download and upload values | |
down[1] = $14 | |
down[2] = $15 | |
gsub(/[^a-zA-Z]/, "", down[2]) | |
up[1] = $17 | |
up[2] = $18 |