<?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: Partial Value as a match or field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-break-a-value-down-to-partial-values-as-a/m-p/606371#M210888</link>
    <description>&lt;P&gt;(I unlinked your example as it referred to your server)&lt;/P&gt;&lt;P&gt;Can you post the raw event (desensitised of course) in a code block &amp;lt;/&amp;gt; so we can see what you are actually dealing with?&lt;/P&gt;&lt;P&gt;If not, try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "Computer SerialNumber : (?&amp;lt;ComputerSerialNumber&amp;gt;.+) Computer Type"&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 20 Jul 2022 16:10:22 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-07-20T16:10:22Z</dc:date>
    <item>
      <title>Is it possible to break a value down to partial values as a match or field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-break-a-value-down-to-partial-values-as-a/m-p/606368#M210887</link>
      <description>&lt;P&gt;So I have a field (plugin_output)that has a paragraph of hardware info as one value. The only part of the value I'm concerned with is the "Computer SerialNumber". Is it possible to break this value down into multiple values? I've tried field extraction with no luck, it may be possible to do a string search, but I would also need variables to account for the actual serial number value I want.&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;lt;plugin_output&amp;gt; Computer Manufacturer : VMware, Inc. Computer Model : VMware7,1 Computer SerialNumber : VMware-65 6d 69 60 3b 89 2a a0-3b 4e bb 3f 2a 95 2f 49 Computer Type : Other Computer Physical CPU's : 2 Computer Logical CPU's : 4 CPU0 Architecture : x64 Physical Cores: 2 Logical Cores : 2 CPU1 Architecture : x64 Physical Cores: 2 Logical Cores : 2 Computer Memory : 8190 MB RAM slot #0 Form Factor: DIMM Type : DRAM Capacity : 8192 MB &amp;lt;/plugin_output&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 16:32:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-break-a-value-down-to-partial-values-as-a/m-p/606368#M210887</guid>
      <dc:creator>Minasdad</dc:creator>
      <dc:date>2022-07-20T16:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Value as a match or field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-break-a-value-down-to-partial-values-as-a/m-p/606371#M210888</link>
      <description>&lt;P&gt;(I unlinked your example as it referred to your server)&lt;/P&gt;&lt;P&gt;Can you post the raw event (desensitised of course) in a code block &amp;lt;/&amp;gt; so we can see what you are actually dealing with?&lt;/P&gt;&lt;P&gt;If not, try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "Computer SerialNumber : (?&amp;lt;ComputerSerialNumber&amp;gt;.+) Computer Type"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Jul 2022 16:10:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-break-a-value-down-to-partial-values-as-a/m-p/606371#M210888</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-20T16:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Value as a match or field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-break-a-value-down-to-partial-values-as-a/m-p/606372#M210889</link>
      <description>&lt;P&gt;I randomized parts of that value to define a non-existent server.&amp;nbsp; I posted that example to show that the field had a single value with multiple strings. I'm trying to parse the strings to single out the Serial Number.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 16:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-break-a-value-down-to-partial-values-as-a/m-p/606372#M210889</guid>
      <dc:creator>Minasdad</dc:creator>
      <dc:date>2022-07-20T16:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Value as a match or field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-break-a-value-down-to-partial-values-as-a/m-p/606375#M210891</link>
      <description>&lt;P&gt;Fair enough (on the randomising) - the problem you appear to have is that there is no clear delimiter between key/value pairs in the string (obviously keys and values appear to be separated by colons). You could expand the rex or have multiple rex commands to anchor the pattern before and after the values you want (as I have shown for the serial number), but unless there is an invisible delimiter, it would be difficult to make it generic.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 16:28:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-break-a-value-down-to-partial-values-as-a/m-p/606375#M210891</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-07-20T16:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Value as a match or field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-break-a-value-down-to-partial-values-as-a/m-p/606376#M210892</link>
      <description>&lt;P&gt;Your rex query actually came fairly close to isolating the string, it return every string that started with "Computer" which is alot closer and a much smaller return then the whole value.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 16:41:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-break-a-value-down-to-partial-values-as-a/m-p/606376#M210892</guid>
      <dc:creator>Minasdad</dc:creator>
      <dc:date>2022-07-20T16:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to break a value down to partial values as a match or field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-break-a-value-down-to-partial-values-as-a/m-p/606377#M210893</link>
      <description>&lt;P&gt;Thanks for you help, I figured it out, building on your rex query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sourcetype=tenable:sc:vuln SerialNumber&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| rex max_match=0 field=_raw "Computer SerialNumber : (?&amp;lt;ComputerSerialNumber&amp;gt;.+) Computer Type" | table ComputerSerialNumber&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 16:46:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-break-a-value-down-to-partial-values-as-a/m-p/606377#M210893</guid>
      <dc:creator>Minasdad</dc:creator>
      <dc:date>2022-07-20T16:46:41Z</dc:date>
    </item>
  </channel>
</rss>

