<?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: Can you help me extract field values and display those values as responseTypeCode  requestSourceCode responseMessage correlationId? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437423#M76299</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;Data is in XML format 

&amp;lt;responseTypeCode&amp;gt;XYZ&amp;lt;/responseTypeCode&amp;gt;
  &amp;lt;requestSourceCode&amp;gt;JACK&amp;lt;/requestSourceCode&amp;gt;
  &amp;lt;responseCode&amp;gt;479&amp;lt;/responseCode&amp;gt;
  &amp;lt;responseMessage&amp;gt;Cannot update Employee record&amp;lt;/responseMessage&amp;gt;
  &amp;lt;correlationId&amp;gt;10300458578837&amp;lt;/correlationId&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Jan 2019 18:46:00 GMT</pubDate>
    <dc:creator>harishnpandey</dc:creator>
    <dc:date>2019-01-30T18:46:00Z</dc:date>
    <item>
      <title>Can you help me extract field values and display those values as responseTypeCode  requestSourceCode responseMessage correlationId?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437422#M76298</link>
      <description>&lt;P&gt;XYZ&lt;BR /&gt;
  JACK&lt;BR /&gt;
  479&lt;BR /&gt;
  Cannot update Employee record&lt;BR /&gt;
  10300458578837&lt;/P&gt;

&lt;P&gt;Above data is in XML format and I need to get below result&lt;/P&gt;

&lt;P&gt;1) Extract field values and display those values as responseTypeCode  requestSourceCode responseMessage correlationId.&lt;BR /&gt;
2) Get the count based on requestSourceCode,responseTypeCode,responseCode &lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 18:40:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437422#M76298</guid>
      <dc:creator>harishnpandey</dc:creator>
      <dc:date>2019-01-30T18:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract field values and display those values as responseTypeCode  requestSourceCode responseMessage correlationId?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437423#M76299</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Data is in XML format 

&amp;lt;responseTypeCode&amp;gt;XYZ&amp;lt;/responseTypeCode&amp;gt;
  &amp;lt;requestSourceCode&amp;gt;JACK&amp;lt;/requestSourceCode&amp;gt;
  &amp;lt;responseCode&amp;gt;479&amp;lt;/responseCode&amp;gt;
  &amp;lt;responseMessage&amp;gt;Cannot update Employee record&amp;lt;/responseMessage&amp;gt;
  &amp;lt;correlationId&amp;gt;10300458578837&amp;lt;/correlationId&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Jan 2019 18:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437423#M76299</guid>
      <dc:creator>harishnpandey</dc:creator>
      <dc:date>2019-01-30T18:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract field values and display those values as responseTypeCode  requestSourceCode responseMessage correlationId?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437424#M76300</link>
      <description>&lt;P&gt;Hi @harishnpandey &lt;/P&gt;

&lt;P&gt;Try using &lt;CODE&gt;|spath&lt;/CODE&gt; using the following documentation as a  guide: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Spath#Basic_examples"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Spath#Basic_examples&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Then use &lt;CODE&gt;|stats count by requestSourceCode responseTypeCode responseCode&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Here is an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults | eval _raw =  "&amp;lt;responseTypeCode&amp;gt;XYZ&amp;lt;/responseTypeCode&amp;gt;
   &amp;lt;requestSourceCode&amp;gt;JACK&amp;lt;/requestSourceCode&amp;gt;
   &amp;lt;responseCode&amp;gt;479&amp;lt;/responseCode&amp;gt;
   &amp;lt;responseMessage&amp;gt;Cannot update Employee record&amp;lt;/responseMessage&amp;gt;
   &amp;lt;correlationId&amp;gt;10300458578837&amp;lt;/correlationId&amp;gt;"
   | spath | stats count by requestSourceCode responseCode responseMessage
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this is  helpful&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 18:46:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437424#M76300</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-01-30T18:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract field values and display those values as responseTypeCode  requestSourceCode responseMessage correlationId?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437425#M76301</link>
      <description>&lt;P&gt;thanks for your quick reply. But i dont want to limit my search to above .I need to search through entire log file and get the result . &lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 19:12:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437425#M76301</guid>
      <dc:creator>harishnpandey</dc:creator>
      <dc:date>2019-01-30T19:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract field values and display those values as responseTypeCode  requestSourceCode responseMessage correlationId?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437426#M76302</link>
      <description>&lt;P&gt;Yep my example should work with your whole dataset. Just do it like this: &lt;CODE&gt;&amp;lt;your search&amp;gt; | spath | stats count by requestSourceCode responseCode responseMessage&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 19:14:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437426#M76302</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-01-30T19:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract field values and display those values as responseTypeCode  requestSourceCode responseMessage correlationId?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437427#M76303</link>
      <description>&lt;P&gt;If your data is more complicated than you have shown here then this query will require a few changes&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 19:15:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437427#M76303</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-01-30T19:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract field values and display those values as responseTypeCode  requestSourceCode responseMessage correlationId?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437428#M76304</link>
      <description>&lt;P&gt;He is giving you a run-anywhere example to PROVE to you that line #6 will do what you need.  Take line #6 and append it to your existing search.  Profit.  Come back here and click &lt;CODE&gt;Accept&lt;/CODE&gt; and &lt;CODE&gt;UpVote&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 19:16:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437428#M76304</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-01-30T19:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract field values and display those values as responseTypeCode  requestSourceCode responseMessage correlationId?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437429#M76305</link>
      <description>&lt;P&gt;Below is my xml data and similarly I have thousands of records logged into file&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[1/30/19 13:20:28:237 EST] 000001d2 AppServi E   &amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;UpdateEmpInformationResponse xsi:type="in:UpdatePolicyInformationResponse" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:in="http://abc.ig.com/com/internal/interfaceobjects"&amp;gt;
  &amp;lt;responseTypeCode&amp;gt;UBI&amp;lt;/responseTypeCode&amp;gt;
  &amp;lt;requestSourceCode&amp;gt;JIU&amp;lt;/requestSourceCode&amp;gt;
  &amp;lt;responseCode&amp;gt;479&amp;lt;/responseCode&amp;gt;
  &amp;lt;responseMessage&amp;gt;Cannot update Employee record&amp;lt;/responseMessage&amp;gt;
  &amp;lt;correlationId&amp;gt;10300458578837&amp;lt;/correlationId&amp;gt;
  &amp;lt;error&amp;gt;
    &amp;lt;errorMessageDescription&amp;gt;ChoreographUpdateEmpInformation - Cannot update Employee record&amp;lt;/errorMessageDescription&amp;gt;
    &amp;lt;errorCode&amp;gt;479&amp;lt;/errorCode&amp;gt;
  &amp;lt;/error&amp;gt;
&amp;lt;/UpdateEmpInformationResponse&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Jan 2019 19:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437429#M76305</guid>
      <dc:creator>harishnpandey</dc:creator>
      <dc:date>2019-01-30T19:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract field values and display those values as responseTypeCode  requestSourceCode responseMessage correlationId?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437430#M76306</link>
      <description>&lt;P&gt;I tried suggested spath option no luck &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:28:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437430#M76306</guid>
      <dc:creator>harishnpandey</dc:creator>
      <dc:date>2019-01-31T20:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me extract field values and display those values as responseTypeCode  requestSourceCode responseMessage correlationId?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437431#M76307</link>
      <description>&lt;P&gt;If you post the entire contents of a single event (from splunk not raw data) we will be better able to help you&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:31:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-extract-field-values-and-display-those-values-as/m-p/437431#M76307</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-01-31T20:31:08Z</dc:date>
    </item>
  </channel>
</rss>

