Ok, so I can now get the exact time using your command, excellent.
The next step is perusing and understanding the logs. My BP and Relay nodes are setup to use logs outputting to a json file (node0.json) in the /opt/cardano/cnode/logs/ directory. I have been using commands like less node0.json to view contents of the log file.
The journalctl (as I understand it) is a system wide logging output which captures logs by various services, the output is as follows running the
sudo journalctl --since "2023-06-03 22:13:50"
Jun 03 22:13:51 x9x.l.hostens.cloud cnode-cncli-ptsendtip[1648332]: 'POOL_ID' and/or 'POOL_TICKER' and/or 'PT_API_KEY' not set in cncli.sh, >
Jun 03 22:13:51 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Main process exited, code=exited, status=1/FAILURE
Jun 03 22:13:51 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Failed with result 'exit-code'.
Jun 03 22:13:51 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Consumed 1.642s CPU time.
Jun 03 22:14:11 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Scheduled restart job, restart counter is at 18918.
Jun 03 22:14:11 x9x.l.hostens.cloud systemd[1]: Stopped Cardano Node - CNCLI PoolTool SendTip.
Jun 03 22:14:11 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Consumed 1.642s CPU time.
Jun 03 22:14:11 x9x.l.hostens.cloud systemd[1]: Started Cardano Node - CNCLI PoolTool SendTip.
Jun 03 22:14:11 x9x.l.hostens.cloud cnode-cncli-ptsendtip[1648646]: TERM environment variable not set.
Jun 03 22:14:11 x9x.l.hostens.cloud cnode-cncli-ptsendtip[1648572]: Checking for script updates...
Jun 03 22:14:13 x9x.l.hostens.cloud cnode-cncli-ptsendtip[1648572]: 'POOL_ID' and/or 'POOL_TICKER' and/or 'PT_API_KEY' not set in cncli.sh, >
Jun 03 22:14:13 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Main process exited, code=exited, status=1/FAILURE
Jun 03 22:14:13 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Failed with result 'exit-code'.
Jun 03 22:14:13 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Consumed 1.742s CPU time.
Jun 03 22:14:13 x9x.l.hostens.cloud kernel: [UFW BLOCK] IN=ens3 OUT= MAC=00:00:50:d0:e1:8c:fe:00:50:d0:e1:8c:08:00 SRC=184.105.247.239 DST=8>
Jun 03 22:14:21 x9x.l.hostens.cloud kernel: [UFW BLOCK] IN=ens3 OUT= MAC=00:00:50:d0:e1:8c:fe:00:50:d0:e1:8c:08:00 SRC=45.134.144.212 DST=80>
Jun 03 22:14:33 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Scheduled restart job, restart counter is at 18919.
Jun 03 22:14:33 x9x.l.hostens.cloud systemd[1]: Stopped Cardano Node - CNCLI PoolTool SendTip.
Jun 03 22:14:33 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Consumed 1.742s CPU time.
Jun 03 22:14:33 x9x.l.hostens.cloud systemd[1]: Started Cardano Node - CNCLI PoolTool SendTip.
Jun 03 22:14:33 x9x.l.hostens.cloud cnode-cncli-ptsendtip[1648886]: TERM environment variable not set.
Jun 03 22:14:33 x9x.l.hostens.cloud cnode-cncli-ptsendtip[1648812]: Checking for script updates...
Jun 03 22:14:35 x9x.l.hostens.cloud cnode-cncli-ptsendtip[1648812]: 'POOL_ID' and/or 'POOL_TICKER' and/or 'PT_API_KEY' not set in cncli.sh, >
Jun 03 22:14:35 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Main process exited, code=exited, status=1/FAILURE
Jun 03 22:14:35 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Failed with result 'exit-code'.
Jun 03 22:14:35 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Consumed 1.904s CPU time.
Jun 03 22:14:48 x9x.l.hostens.cloud kernel: [UFW BLOCK] IN=ens3 OUT= MAC=00:00:50:d0:e1:8c:fe:00:50:d0:e1:8c:08:00 SRC=89.248.162.161 DST=80>
Jun 03 22:14:51 x9x.l.hostens.cloud kernel: [UFW BLOCK] IN=ens3 OUT= MAC=00:00:50:d0:e1:8c:fe:00:50:d0:e1:8c:08:00 SRC=162.142.125.249 DST=8>
Jun 03 22:14:55 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Scheduled restart job, restart counter is at 18920.
Jun 03 22:14:55 x9x.l.hostens.cloud systemd[1]: Stopped Cardano Node - CNCLI PoolTool SendTip.
Jun 03 22:14:55 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Consumed 1.904s CPU time.
Jun 03 22:14:55 x9x.l.hostens.cloud systemd[1]: Started Cardano Node - CNCLI PoolTool SendTip.
Jun 03 22:14:55 x9x.l.hostens.cloud cnode-cncli-ptsendtip[1649126]: TERM environment variable not set.
Jun 03 22:14:56 x9x.l.hostens.cloud cnode-cncli-ptsendtip[1649052]: Checking for script updates...
Jun 03 22:14:57 x9x.l.hostens.cloud cnode-cncli-ptsendtip[1649052]: 'POOL_ID' and/or 'POOL_TICKER' and/or 'PT_API_KEY' not set in cncli.sh, >
Jun 03 22:14:57 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Main process exited, code=exited, status=1/FAILURE
Jun 03 22:14:57 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Failed with result 'exit-code'.
Jun 03 22:14:57 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Consumed 1.712s CPU time.
Jun 03 22:15:00 x9x.l.hostens.cloud kernel: [UFW BLOCK] IN=ens3 OUT= MAC=00:00:50:d0:e1:8c:fe:00:50:d0:e1:8c:08:00 SRC=116.209.208.118 DST=8>
Jun 03 22:15:17 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Scheduled restart job, restart counter is at 18921.
Jun 03 22:15:17 x9x.l.hostens.cloud systemd[1]: Stopped Cardano Node - CNCLI PoolTool SendTip.
Jun 03 22:15:17 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Consumed 1.712s CPU time.
Jun 03 22:15:17 x9x.l.hostens.cloud systemd[1]: Started Cardano Node - CNCLI PoolTool SendTip.
Jun 03 22:15:17 x9x.l.hostens.cloud cnode-cncli-ptsendtip[1649366]: TERM environment variable not set.
Jun 03 22:15:18 x9x.l.hostens.cloud cnode-cncli-ptsendtip[1649292]: Checking for script updates...
Jun 03 22:15:19 x9x.l.hostens.cloud cnode-cncli-ptsendtip[1649292]: 'POOL_ID' and/or 'POOL_TICKER' and/or 'PT_API_KEY' not set in cncli.sh, >
Jun 03 22:15:19 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Main process exited, code=exited, status=1/FAILURE
Jun 03 22:15:19 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Failed with result 'exit-code'.
Jun 03 22:15:19 x9x.l.hostens.cloud systemd[1]: cnode-cncli-ptsendtip.service: Consumed 1.791s CPU time.
Jun 03 22:15:19 x9x.l.hostens.cloud kernel: [UFW BLOCK] IN=ens3 OUT= MAC=00:00:50:d0:e1:8c:fe:00:50:d0:e1:8c:86:dd SRC=2001:41d0:0403:1f43:0>
It’s interesting to note the firewall blocks but there doesn’t seem to be logging from cnode. I assume because it is outputting to the node0.json file and not the system.
So using the following command to peruse the json file with (note, only gets 9 seconds of logs):
less node0-20230603082843.json | jq --arg date "2023-06-03T22:13:5" 'select(.at | startswith($date))'
I get (applogies for the large amount of data):
{
"app": [],
"at": "2023-06-03T22:13:50.00Z",
"data": {
"chainDensity": 0.04651614,
"credentials": "Cardano",
"delegMapSize": 1282460,
"kind": "TraceStartLeadershipCheck",
"slot": 94264139,
"utxoSize": 10000910
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.LeadershipCheck"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:50.05Z",
"data": {
"credentials": "Cardano",
"val": {
"kind": "TraceNodeNotLeader",
"slot": 94264139
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.Forge"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:50.70Z",
"data": {
"kind": "PeersFetch",
"peers": [
{
"declined": "FetchDeclineChainNotPlausible",
"kind": "FetchDecision declined",
"peer": {
"local": {
"addr": "80.208.225.140",
"port": "42397"
},
"remote": {
"addr": "161.97.108.250",
"port": "6000"
}
}
},
{
"kind": "FetchDecision results",
"length": "1",
"peer": {
"local": {
"addr": "80.208.225.140",
"port": "43799"
},
"remote": {
"addr": "80.208.230.113",
"port": "3001"
}
}
}
]
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.BlockFetchDecision"
],
"pid": "3245403",
"sev": "Info",
"thread": "531"
}
{
"app": [],
"at": "2023-06-03T22:13:50.70Z",
"data": {
"kind": "AcknowledgedFetchRequest",
"peer": {
"local": {
"addr": "80.208.225.140",
"port": "43799"
},
"remote": {
"addr": "80.208.230.113",
"port": "3001"
}
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.BlockFetchClient"
],
"pid": "3245403",
"sev": "Info",
"thread": "336772"
}
{
"app": [],
"at": "2023-06-03T22:13:50.70Z",
"data": {
"kind": "AddedFetchRequest",
"peer": {
"local": {
"addr": "80.208.225.140",
"port": "43799"
},
"remote": {
"addr": "80.208.230.113",
"port": "3001"
}
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.BlockFetchClient"
],
"pid": "3245403",
"sev": "Info",
"thread": "531"
}
{
"app": [],
"at": "2023-06-03T22:13:50.70Z",
"data": {
"head": "120a24990e4e5e6bb556a7c24a748f19da6cdb6bea26bba172f786f7d23fb118",
"kind": "SendFetchRequest",
"length": 1,
"peer": {
"local": {
"addr": "80.208.225.140",
"port": "43799"
},
"remote": {
"addr": "80.208.230.113",
"port": "3001"
}
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.BlockFetchClient"
],
"pid": "3245403",
"sev": "Info",
"thread": "336772"
}
{
"app": [],
"at": "2023-06-03T22:13:50.70Z",
"data": {
"kind": "StartedFetchBatch",
"peer": {
"local": {
"addr": "80.208.225.140",
"port": "43799"
},
"remote": {
"addr": "80.208.230.113",
"port": "3001"
}
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.BlockFetchClient"
],
"pid": "3245403",
"sev": "Info",
"thread": "336771"
}
{
"app": [],
"at": "2023-06-03T22:13:50.71Z",
"data": {
"block": "120a24990e4e5e6bb556a7c24a748f19da6cdb6bea26bba172f786f7d23fb118",
"delay": 0.709108642,
"kind": "CompletedBlockFetch",
"peer": {
"local": {
"addr": "80.208.225.140",
"port": "43799"
},
"remote": {
"addr": "80.208.230.113",
"port": "3001"
}
},
"size": 74181
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.BlockFetchClient"
],
"pid": "3245403",
"sev": "Info",
"thread": "336771"
}
{
"app": [],
"at": "2023-06-03T22:13:50.71Z",
"data": {
"kind": "CompletedFetchBatch",
"peer": {
"local": {
"addr": "80.208.225.140",
"port": "43799"
},
"remote": {
"addr": "80.208.230.113",
"port": "3001"
}
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.BlockFetchClient"
],
"pid": "3245403",
"sev": "Info",
"thread": "336771"
}
{
"app": [],
"at": "2023-06-03T22:13:50.75Z",
"data": {
"chainLengthDelta": 1,
"kind": "TraceAddBlockEvent.AddedToCurrentChain",
"newtip": "120a24990e4e5e6bb556a7c24a748f19da6cdb6bea26bba172f786f7d23fb118@94264139"
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.ChainDB"
],
"pid": "3245403",
"sev": "Notice",
"thread": "519"
}
{
"app": [],
"at": "2023-06-03T22:13:51.00Z",
"data": {
"chainDensity": 0.046513133,
"credentials": "Cardano",
"delegMapSize": 1282459,
"kind": "TraceStartLeadershipCheck",
"slot": 94264140,
"utxoSize": 10000903
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.LeadershipCheck"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:51.05Z",
"data": {
"credentials": "Cardano",
"val": {
"kind": "TraceNodeNotLeader",
"slot": 94264140
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.Forge"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:52.00Z",
"data": {
"chainDensity": 0.046513133,
"credentials": "Cardano",
"delegMapSize": 1282459,
"kind": "TraceStartLeadershipCheck",
"slot": 94264141,
"utxoSize": 10000903
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.LeadershipCheck"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:52.04Z",
"data": {
"credentials": "Cardano",
"val": {
"kind": "TraceNodeNotLeader",
"slot": 94264141
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.Forge"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:53.00Z",
"data": {
"chainDensity": 0.046513133,
"credentials": "Cardano",
"delegMapSize": 1282459,
"kind": "TraceStartLeadershipCheck",
"slot": 94264142,
"utxoSize": 10000903
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.LeadershipCheck"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:53.05Z",
"data": {
"credentials": "Cardano",
"val": {
"kind": "TraceNodeNotLeader",
"slot": 94264142
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.Forge"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:54.00Z",
"data": {
"chainDensity": 0.046513133,
"credentials": "Cardano",
"delegMapSize": 1282459,
"kind": "TraceStartLeadershipCheck",
"slot": 94264143,
"utxoSize": 10000903
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.LeadershipCheck"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:54.07Z",
"data": {
"credentials": "Cardano",
"val": {
"kind": "TraceNodeNotLeader",
"slot": 94264143
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.Forge"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:55.00Z",
"data": {
"chainDensity": 0.046513133,
"credentials": "Cardano",
"delegMapSize": 1282459,
"kind": "TraceStartLeadershipCheck",
"slot": 94264144,
"utxoSize": 10000903
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.LeadershipCheck"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:55.05Z",
"data": {
"credentials": "Cardano",
"val": {
"kind": "TraceNodeNotLeader",
"slot": 94264144
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.Forge"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:56.00Z",
"data": {
"chainDensity": 0.046513133,
"credentials": "Cardano",
"delegMapSize": 1282459,
"kind": "TraceStartLeadershipCheck",
"slot": 94264145,
"utxoSize": 10000903
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.LeadershipCheck"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:56.04Z",
"data": {
"credentials": "Cardano",
"val": {
"kind": "TraceNodeNotLeader",
"slot": 94264145
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.Forge"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:57.00Z",
"data": {
"chainDensity": 0.046513133,
"credentials": "Cardano",
"delegMapSize": 1282459,
"kind": "TraceStartLeadershipCheck",
"slot": 94264146,
"utxoSize": 10000903
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.LeadershipCheck"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:57.04Z",
"data": {
"credentials": "Cardano",
"val": {
"kind": "TraceNodeNotLeader",
"slot": 94264146
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.Forge"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:58.00Z",
"data": {
"chainDensity": 0.046513133,
"credentials": "Cardano",
"delegMapSize": 1282459,
"kind": "TraceStartLeadershipCheck",
"slot": 94264147,
"utxoSize": 10000903
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.LeadershipCheck"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:58.05Z",
"data": {
"credentials": "Cardano",
"val": {
"kind": "TraceNodeNotLeader",
"slot": 94264147
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.Forge"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:59.00Z",
"data": {
"chainDensity": 0.046513133,
"credentials": "Cardano",
"delegMapSize": 1282459,
"kind": "TraceStartLeadershipCheck",
"slot": 94264148,
"utxoSize": 10000903
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.LeadershipCheck"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
{
"app": [],
"at": "2023-06-03T22:13:59.04Z",
"data": {
"credentials": "Cardano",
"val": {
"kind": "TraceNodeNotLeader",
"slot": 94264148
}
},
"env": "8.0.0:00000",
"host": "x9x",
"loc": null,
"msg": "",
"ns": [
"cardano.node.Forge"
],
"pid": "3245403",
"sev": "Info",
"thread": "529"
}
So what am i looking at here to confirm I have added a block or whether there was a problem with block creation.