<div dir="ltr"><div dir="ltr">Hello All,<br><div>It's been longer than I'd want to really get into this, but now that I've got a start on it I'd like some feedback on the best way to deal with the pattern attribute. For the file it currently just uses a pattern like <font face="monospace, monospace">%h %l %u %t %r %s %b %{i,Referer} %{i,User-Agent}</font>. The problem is that doesn't really provide a key for the value. What I'm currently using is that same pattern and using the <font face="monospace, monospace">ExchangeAttributeBuilder.getName()</font> as the key. However if the value of <font face="monospace, monospace">getName()</font> changes at some point the data would end up with a different key. This approach doesn't seem ideal.</div><div><br></div><div>One option would be to switch to some kind of property format type of thing like:</div><div><br></div><div><font face="monospace, monospace">attributes={"remoteHost"="%h", "identityUsername"="%l"}</font></div><div><br></div><div>I'm not sure how user friendly that is though.</div><div><br></div><div>The other option would be to limit it to known exchange attributes, but that would require a change every time a new attribute is added to Undertow itself or we'd have to allow for some kind of custom attribute.</div><div><br></div><div>Any opinions are welcome. Ideally we want something user friendly that's going to produce consistent keys as that would be part of the structured data contract.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 18, 2019 at 8:10 AM James Perkins <<a href="mailto:jperkins@redhat.com">jperkins@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hello All,<div>I've created a proposal [1] for JSON access logging. Any feedback is welcome.</div><div><br></div><div>[1]: <a href="https://github.com/wildfly/wildfly-proposals/pull/176" target="_blank">https://github.com/wildfly/wildfly-proposals/pull/176</a><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_1263520789966298393gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div>