<html><body><p>Thank you Matt & Doug for sharing this tip. Definitely very helpful.<br><br>Have a nice day.<br><br>Regards,<br>Mariam.<br><br><br><img width="16" height="16" src="cid:1__=8FBBF5D2DFCF9E3E8f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for Doug Hellmann ---01/21/2016 10:38:57 AM---Excerpts from Matt Riedemann's message of 2016-01-21 10:09:"><font color="#424282">Doug Hellmann ---01/21/2016 10:38:57 AM---Excerpts from Matt Riedemann's message of 2016-01-21 10:09:32 -0600: > Are you tired of trying to st</font><br><br><font size="2" color="#5F5F5F">From: </font><font size="2">Doug Hellmann <doug@doughellmann.com></font><br><font size="2" color="#5F5F5F">To: </font><font size="2">openstack-dev <openstack-dev@lists.openstack.org></font><br><font size="2" color="#5F5F5F">Date: </font><font size="2">01/21/2016 10:38 AM</font><br><font size="2" color="#5F5F5F">Subject: </font><font size="2">Re: [openstack-dev] Tip: jsonformatter site for parsing/debugging logs</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><tt>Excerpts from Matt Riedemann's message of 2016-01-21 10:09:32 -0600:<br>> Are you tired of trying to strain your eyes to parse something like this <br>> in the logs [1]?<br>> <br>> vif=VIF({'profile': {}, 'ovs_interfaceid': <br>> u'ac3ca8e7-c22d-4f63-9620-ce031bf3eaac', 'preserve_on_delete': False, <br>> 'network': Network({'bridge': u'br-int', 'subnets': [Subnet({'ips': <br>> [FixedIP({'meta': {}, 'version': 4, 'type': u'fixed', 'floating_ips': <br>> [], 'address': u'10.100.0.18'})], 'version': 4, 'meta': {u'dhcp_server': <br>> u'10.100.0.17'}, 'dns': [], 'routes': [], 'cidr': u'10.100.0.16/28', <br>> 'gateway': IP({'meta': {}, 'version': None, 'type': u'gateway', <br>> 'address': None})})], 'meta': {u'injected': False, u'tenant_id': <br>> u'1d760ac487e24e06add18dacefa221a1'}, 'id': <br>> u'b13e9828-2bd9-4fb4-a20d-a92e2a8c1a77', 'label': <br>> u'tempest-network-smoke--1979535575'}), 'devname': u'tapac3ca8e7-c2', <br>> 'vnic_type': u'normal', 'qbh_params': None, 'meta': {}, 'details': <br>> {u'port_filter': True, u'ovs_hybrid_plug': True}, 'address': <br>> u'fa:16:3e:0c:d3:95', 'active': False, 'type': u'ovs', 'id': <br>> u'ac3ca8e7-c22d-4f63-9620-ce031bf3eaac', 'qbg_params': None}<br>> <br>> I found </tt><tt><a href="https://jsonformatter.curiousconcept.com/">https://jsonformatter.curiousconcept.com/</a></tt><tt> which is nice since <br>> you can just copy that json from the logs and paste it into the text <br>> area and format it (I disable validation).<br><br>You can also do this using Python's json module from the command line:<br><br>$ echo '{"json":"obj"}' | python -m json.tool<br>{<br> "json": "obj"<br>}<br><br>Doug<br><br>__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br></tt><tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></tt><tt><br><br></tt><br><BR>
</body></html>