- Open your notebook
- Create a cell contain the python script
- Execute.
- Open the root directory of your jupiter instance
- Create a new notebook
### Keybase proof | |
I hereby claim: | |
* I am leodido on github. | |
* I am leodido (https://keybase.io/leodido) on keybase. | |
* I have a public key whose fingerprint is 6FB3 CD09 5FA1 CF66 8316 E159 BFFB 2449 0FD2 E91F | |
To claim this, I am signing this object: |
Verifying that "leodido.id" is my Blockstack ID. https://onename.com/leodido |
docker => syslog (RFC5424, non-transparent) => telegraf => (*)
Docker can use syslog as a log driver.
Anyway it transport syslog message towards destination using the non-transparent framing technique (also if deprecated by the octet-counting).
Using the telegraf syslog input plugin link.
package main | |
import ( | |
"fmt" | |
"github.com/davecgh/go-spew/spew" | |
"github.com/influxdata/go-syslog/v2/rfc5424" | |
) | |
func main() { |
package main | |
import ( | |
"io" | |
"time" | |
"github.com/davecgh/go-spew/spew" | |
syslog "github.com/influxdata/go-syslog/v2" | |
"github.com/influxdata/go-syslog/v2/octetcounting" | |
) |
# This only works with the following docker logging drivers currently: journald, json-file, and CRI-O log files | |
global(processInternalMessages="on") | |
global(parser.permitSlashInProgramName="on") | |
global(workDirectory="/var/spool/rsyslog") # default location for work (spool) files | |
# Raise limits within /etc/systemd/journald.conf on the host(s) - ie., RateLimitIntervalSec=30s + RateLimitBurst=1000000 | |
module(load="imjournal" ignorepreviousmessages="on" ratelimit.interval="60" ratelimit.burst="2000000" persiststateinterval="10000" statefile="/var/spool/rsyslog/imjournal.state") | |
module(load="mmutf8fix") | |
module(load="mmkubernetes" | |
tls.cacert="/run/secrets/kubernetes.io/serviceaccount/ca.crt" | |
tokenfile="/run/secrets/kubernetes.io/serviceaccount/token" |
function cache_uname { | |
what=$(uname -srm) | |
read -ra uname <<< "$what" | |
kern_name="${uname[0]}" | |
kern_vers="${uname[1]}" | |
mach_arch="${uname[2]}" | |
} | |
function get_os { |
/* | |
* dump_stack(ls); | |
*/ | |
void dump_stack(lua_State *L) | |
{ | |
int i; | |
int top = lua_gettop(L); | |
printf("\n#### BOS ####\n"); | |
for(i = top; i >= 1; i--) | |
{ |