<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: xml like log in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/xml-like-log/m-p/498385#M32622</link>
    <description>&lt;P&gt;I have tried the &lt;CODE&gt;KV_MODE = xml&lt;/CODE&gt; and it didn't seem to do anything.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2020 20:07:36 GMT</pubDate>
    <dc:creator>cboillot</dc:creator>
    <dc:date>2020-01-30T20:07:36Z</dc:date>
    <item>
      <title>xml like log</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/xml-like-log/m-p/498383#M32620</link>
      <description>&lt;P&gt;I have a log that I am trying to parse and I am unable to figure this out. It looks like a type of XML file. Here is an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;ErrorMessage Id='20200130111127151' Date='1/30/2020' Time='11:11 AM' &amp;gt;
  &amp;lt;RequestInformation
     Hostname='1.2.3.4' 
     HostAddress='5.6.7.8'
     HostBrowser='Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.42000)'
     ReferringPage=''
     RequestType='POST'
     ContentLength='505'
     RawUrl='/dir/subdir/filename.asmx'&amp;gt;
    &amp;lt;Browser Type='IE6' Browser='IE' Version='6.0' Platform='Unknown' SupportsFrames='True' SupportsJavascript='True' SupportsTables='True'SupportsCookies='True'/&amp;gt;
    &amp;lt;Cookies&amp;gt;
    &amp;lt;/Cookies&amp;gt;
    &amp;lt;Form&amp;gt;
    &amp;lt;/Form&amp;gt;
  &amp;lt;/RequestInformation&amp;gt;
  &amp;lt;Exception Message='ORA-01017: invalid username/password; logon denied'&amp;gt;
    &amp;lt;StackTrace&amp;gt;
      &amp;lt;![CDATA[
   at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck, Int32 isRecoverable, OracleLogicalTransaction m_OracleLogicalTransaction)
   at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src, OracleLogicalTransaction m_oracleLogicalTransaction)
   at Oracle.DataAccess.Client.OracleConnection.Open()
   at dhss.webservice.login_ws.MExecuteComponent.AuthenticateToAPP(String UserID, String Password, String DBInstance, String ServerIP, String ServerPort)
]]&amp;gt;
    &amp;lt;/StackTrace&amp;gt;
  &amp;lt;/Exception&amp;gt;
&amp;lt;/ErrorMessage&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have the Add-on for Oracle database installed, but it don't seem to work with this one.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 18:29:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/xml-like-log/m-p/498383#M32620</guid>
      <dc:creator>cboillot</dc:creator>
      <dc:date>2020-01-30T18:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: xml like log</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/xml-like-log/m-p/498384#M32621</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You could try something like below during the search time by using the &lt;STRONG&gt;spath&lt;/STRONG&gt; command&lt;BR /&gt;
Please rename the fields and use table command to display the fields better,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     |makeresults
     |eval _raw="&amp;lt;ErrorMessage Id='20200130111127151' Date='1/30/2020' Time='11:11 AM' &amp;gt;
        &amp;lt;RequestInformation
           Hostname='1.2.3.4' 
           HostAddress='5.6.7.8'
           HostBrowser='Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 4.0.30319.42000)'
           ReferringPage=''
           RequestType='POST'
           ContentLength='505'
           RawUrl='/dir/subdir/filename.asmx'&amp;gt;
          &amp;lt;Browser Type='IE6' Browser='IE' Version='6.0' Platform='Unknown' SupportsFrames='True' SupportsJavascript='True' SupportsTables='True'SupportsCookies='True'/&amp;gt;
          &amp;lt;Cookies&amp;gt;
          &amp;lt;/Cookies&amp;gt;
          &amp;lt;Form&amp;gt;
          &amp;lt;/Form&amp;gt;
        &amp;lt;/RequestInformation&amp;gt;
        &amp;lt;Exception Message='ORA-01017: invalid username/password; logon denied'&amp;gt;
          &amp;lt;StackTrace&amp;gt;
            &amp;lt;![CDATA[
         at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck, Int32 isRecoverable, OracleLogicalTransaction m_OracleLogicalTransaction)
         at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src, OracleLogicalTransaction m_oracleLogicalTransaction)
         at Oracle.DataAccess.Client.OracleConnection.Open()
         at dhss.webservice.login_ws.MExecuteComponent.AuthenticateToAPP(String UserID, String Password, String DBInstance, String ServerIP, String ServerPort)
      ]]&amp;gt;
          &amp;lt;/StackTrace&amp;gt;
        &amp;lt;/Exception&amp;gt;
      &amp;lt;/ErrorMessage&amp;gt;"
      |spath input=_raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could also add KV_MODE = xml in the props.conf and breaking the lines appropriately&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      KV_MODE = xml
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jan 2020 19:16:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/xml-like-log/m-p/498384#M32621</guid>
      <dc:creator>dindu</dc:creator>
      <dc:date>2020-01-30T19:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: xml like log</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/xml-like-log/m-p/498385#M32622</link>
      <description>&lt;P&gt;I have tried the &lt;CODE&gt;KV_MODE = xml&lt;/CODE&gt; and it didn't seem to do anything.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 20:07:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/xml-like-log/m-p/498385#M32622</guid>
      <dc:creator>cboillot</dc:creator>
      <dc:date>2020-01-30T20:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: xml like log</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/xml-like-log/m-p/498386#M32623</link>
      <description>&lt;P&gt;Set the linebreaker in props.conf as&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     LINE_BREAKER = &amp;lt;/ErrorMessage&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jan 2020 21:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/xml-like-log/m-p/498386#M32623</guid>
      <dc:creator>dindu</dc:creator>
      <dc:date>2020-01-30T21:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: xml like log</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/xml-like-log/m-p/498387#M32624</link>
      <description>&lt;P&gt;looks like this might have been what was needed. thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 21:34:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/xml-like-log/m-p/498387#M32624</guid>
      <dc:creator>cboillot</dc:creator>
      <dc:date>2020-01-30T21:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: xml like log</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/xml-like-log/m-p/498388#M32625</link>
      <description>&lt;P&gt;Now I am seeing results with tick marks, like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;'ASP.NET_SessionId'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jan 2020 22:52:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/xml-like-log/m-p/498388#M32625</guid>
      <dc:creator>cboillot</dc:creator>
      <dc:date>2020-01-30T22:52:51Z</dc:date>
    </item>
  </channel>
</rss>

