You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The watermint toolbox stores various logs when executing commands; API calls are stored under the logs folder, which by default is $HOME/.toolbox/jobs/yyyymmdd-HHMMSS.xxx/logs. Files beginning with capture are capture logs and are compressed in gzip format if the extension is gz.
Files are also stored in separate files of a certain file size. If you want to refer to each of these logs at once, there is the command to stream those logs to the standard output.
When the job name is 20240619-112144.U4F, as shown above, perform the following. Replace the part 20240619-112144.U4F with the ID of the job you wish to refer to.
As it is, it is a little difficult to browse. You can use a JSON data processor such as the jq command, or format it with a Visual Studio Code JSON plugin.
To format using jq, run the following: the header part output by tbx is not in JSON format, so omit this part using the -quiet option.
JSON data, where time is the timestamp of execution (when the request sent), req is the request data, res is the response data and latency is the time in nanoseconds it took to get a response.
Note that OAuth tokens and other information are omitted for security reasons.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The watermint toolbox stores various logs when executing commands; API calls are stored under the logs folder, which by default is $HOME/.toolbox/jobs/yyyymmdd-HHMMSS.xxx/logs. Files beginning with capture are capture logs and are compressed in gzip format if the extension is gz.
Files are also stored in separate files of a certain file size. If you want to refer to each of these logs at once, there is the command to stream those logs to the standard output.
When the job name is
20240619-112144.U4F
, as shown above, perform the following. Replace the part20240619-112144.U4F
with the ID of the job you wish to refer to.As it is, it is a little difficult to browse. You can use a JSON data processor such as the jq command, or format it with a Visual Studio Code JSON plugin.
To format using
jq
, run the following: the header part output bytbx
is not in JSON format, so omit this part using the-quiet
option.JSON data, where
time
is the timestamp of execution (when the request sent),req
is the request data,res
is the response data andlatency
is the time in nanoseconds it took to get a response.Note that OAuth tokens and other information are omitted for security reasons.
Beta Was this translation helpful? Give feedback.
All reactions