rabbitmqadmin get queue=test requeue=false print below response
+-------------+----------+---------------+--------------+------------------+-------------+ | routing_key | exchange | message_count | payload | payload_encoding | redelivered | +-------------+----------+---------------+--------------+------------------+-------------+ | test | | 0 | hello, world | string | False | +-------------+----------+---------------+--------------+------------------+-------------+
I want to get header as one more columns and its value.
How I can get it header value in the above table. If not possible in the same table then how to get it in other table. I want to publish my header data also with response data
Just use --depth.
Example without --depth: rabbitmqadmin get queue=smsc01 requeue=true count=10
Result without headers:
Example with --depth: rabbitmqadmin get queue=smsc01 requeue=true count=10 --depth=4
Result with headers: