GET /logstash-*/_search
{
"_source": ["@timestamp", "container_name", "host", "message"],
"sort" : [
{ "@timestamp" : {"order" : "desc"}}
],
"query": {
"match" : {
"message" : {
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
{ | |
"config": { | |
"chainId": 0, | |
"homesteadBlock": 0, | |
"eip155Block": 0, | |
"eip158Block": 0 | |
}, | |
"alloc": { | |
"0x0000000000000000000000000000000000000001": {"balance": "111111111"}, | |
"0x0000000000000000000000000000000000000002": {"balance": "222222222"} |
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
FROM ethereum/client-go:alpine | |
ADD genesis.json . | |
CMD ["init", "genesis.json"] |
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
# For node 1 (bound on port 8545) | |
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"admin_nodeInfo","params":[],"id":67}' http://127.0.0.1:8545 | |
# For node 2 (bound on port 8546) | |
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"admin_nodeInfo","params":[],"id":67}' http://127.0.0.1:8546 |
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
# Create network & volumes | |
docker network create geth | |
docker volume create datadir1 | |
docker volume create datadir2 | |
# Pull images | |
docker pull dapps/geth-init | |
docker pull dapps/geth-mine | |
# Create and init nodes |
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
{ | |
"config": { | |
"chainId": 4321, | |
"homesteadBlock": 0, | |
"eip155Block": 0, | |
"eip158Block": 0 | |
}, | |
"alloc": {}, | |
"difficulty" : "0x20000", | |
"gasLimit" : "0x8880000" |
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/sh | |
echo %wheel ALL=NOPASSWD:ALL > /etc/sudoers.d/wheel | |
adduser johannes | |
usermod -aG wheel johannes | |
mkdir /home/johannes/.ssh/ | |
cp /root/.ssh/authorized_keys /home/johannes/.ssh/authorized_keys | |
chown johannes.johannes /home/johannes/.ssh/authorized_keys | |
yum update -y |
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
{ | |
"insecure-registries": ["172.30.0.0/16"] | |
} |
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/sh | |
sudo docker pull djbnjack/metricbeat | |
sudo docker rm mb --force | |
sudo docker run --restart=always -d --pid=host --volume=/proc:/hostfs/proc:ro --volume=/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro --volume=/:/hostfs:ro --net=host --name=mb djbnjack/metricbeat |