# Misc Commands ### Check the size of each item in a node object Get the data ```bash ohai -c /etc/chef/client.rb > output.json ``` Analyze the data ```bash FILE=pld-ancuecom0101-ohai.json; jq 'keys[]' $FILE -rM | xargs -I@ bash -c "printf '%16s:' @; jq .@ -rM $FILE | wc -c" ``` ### Pull out the size of all the data-collector requests For automate journalctl output ```bash grep 'data-collector' journalctl_chef-automate.txt| awk '{print $NF}' | sort -n ``` For chef-server access.log ```bash grep 'data-collector' access.log| awk '{print $26}' | sort -n egrep '/organizations/.*/node' access.log| awk '{print $26}' | sort -n ```