<?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: How to extract value from a field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-from-a-field/m-p/601359#M209290</link>
    <description>&lt;P&gt;There was a typo in my answer.&amp;nbsp; I've fixed it.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2022 13:18:26 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-06-10T13:18:26Z</dc:date>
    <item>
      <title>How to extract value from a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-from-a-field/m-p/601261#M209267</link>
      <description>&lt;P&gt;Good Afternoon!&lt;/P&gt;
&lt;P&gt;I have a search (code example #1) that looks for the EventData_Xml field looking at programs installed. I'm creating a report to show what where and when. Trying to cut out the unneeded data and show just the program name, such as Microsoft Edge in the "Program Installed" column in the code example #2 below.&lt;/P&gt;
&lt;P&gt;Thank you in advance for any assistance. I appreciate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=wineventlog EventData_Xml="*" AND EventID=11707
| table host _time EventData_Xml
| rename host as "Host", _time as "Time", EventData_Xml as "Program Installed"
| convert ctime(Time)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Data&amp;gt;Product: Microsoft Edge -- Installation completed successfully.&amp;lt;/Data&amp;gt;&amp;lt;Data&amp;gt;(NULL)&amp;lt;/Data&amp;gt;&amp;lt;Data&amp;gt;(NULL)&amp;lt;/Data&amp;gt;&amp;lt;Data&amp;gt;(NULL)&amp;lt;/Data&amp;gt;&amp;lt;Data&amp;gt;(NULL)&amp;lt;/Data&amp;gt;&amp;lt;Data&amp;gt;(NULL)&amp;lt;/Data&amp;gt;&amp;lt;Data&amp;gt;&amp;lt;/Data&amp;gt;&amp;lt;Binary&amp;gt;7B34443639394544332D333539302D334635352D424638302D3732374546444242313032467D&amp;lt;/Binary&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 21:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-from-a-field/m-p/601261#M209267</guid>
      <dc:creator>thebankitgui</dc:creator>
      <dc:date>2022-06-09T21:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract value from a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-from-a-field/m-p/601285#M209278</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command can do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=wineventlog EventData_Xml="*" AND EventID=11707
| rex field=EventData_Xml "Product: (?&amp;lt;Product&amp;gt;[^-]+)"
| table host _time Product
| rename host as "Host", _time as "Time", Product as "Program Installed"
| convert ctime(Time)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 13:18:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-from-a-field/m-p/601285#M209278</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-06-10T13:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract value from a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-from-a-field/m-p/601341#M209285</link>
      <description>&lt;P&gt;This is what I get with that string. This is the problem row. Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The results of this query." style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20034iDE35ED9B0A3588B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="RexResults.jpg" alt="The results of this query." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The results of this query.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 12:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-from-a-field/m-p/601341#M209285</guid>
      <dc:creator>thebankitgui</dc:creator>
      <dc:date>2022-06-10T12:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract value from a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-from-a-field/m-p/601359#M209290</link>
      <description>&lt;P&gt;There was a typo in my answer.&amp;nbsp; I've fixed it.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 13:18:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-from-a-field/m-p/601359#M209290</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-06-10T13:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract value from a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-from-a-field/m-p/601360#M209291</link>
      <description>&lt;P&gt;Thank you very much! Looks nice and clean now. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 13:26:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-from-a-field/m-p/601360#M209291</guid>
      <dc:creator>thebankitgui</dc:creator>
      <dc:date>2022-06-10T13:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract value from a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-from-a-field/m-p/601362#M209293</link>
      <description>&lt;P&gt;Any thoughts on sorting by time descending? I've tried a few different ways and it only sorts by the month at the beginning with 1 on top or 12 on top but not accurate to the whole date.&lt;BR /&gt;&lt;BR /&gt;I've tried | sort _time desc and asc and few other variations. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: Disregard, one well placed "| sort - _time" before the table sorted by desc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 14:56:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-value-from-a-field/m-p/601362#M209293</guid>
      <dc:creator>thebankitgui</dc:creator>
      <dc:date>2022-06-10T14:56:05Z</dc:date>
    </item>
  </channel>
</rss>

