LogViewPlus Support

Show Additional XML Fields

https://www.logviewplus.com/forum/Topic755.aspx

By Sebastien Auroux - 23 Sep 2020

hello i am using a <log4j:event message that contains <log4j:data name= element. is there a way to include one of the data directly in the gridview as shown in the below screen shot

By LogViewPlus Support - 23 Sep 2020

Hi Sebastien,

You can show additional XML fields by adding them to the parser configuration.  For example, in the scenario above, you could modify your parser configuration by adding:
<log4j:data name="EquipAddress" value="%S{EquipAddress}"


The %S field definition will extract the contents of the string to a new "EquipAddress" column.  Note that each field definition will result in a new column, so it is best to limit the total number of definitions.

You can find out more about the %S specifier here:
https://www.logviewplus.com/docs/_s_and__s_specifiers.html

Hope that helps,

Toby