<?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: Multi-Valued Field help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606175#M210811</link>
    <description>&lt;P&gt;even when I use variations or use regex it seems to return every event in the sourcetype. Isolating the string " Computer SerialNumber" in the "InputText" field seems to be no Bueno&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| spath input=pluginText ``` this gives you a field plugin_output ```
| rex field=plugin_output "Computer SerialNumber: (?&amp;lt;serialNumber&amp;gt;.+)"&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 Jul 2022 13:31:37 GMT</pubDate>
    <dc:creator>Minasdad</dc:creator>
    <dc:date>2022-07-19T13:31:37Z</dc:date>
    <item>
      <title>How to extract a Multi-Valued Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606038#M210741</link>
      <description>&lt;P&gt;I've imported a .csv that has many fields, but the only one I care about has multiple values in it.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;pluginText&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;lt;plugin_output&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Computer Manufacturer : VMware, Inc. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Computer Model : VMware Virtual Platform &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Computer SerialNumber : This is what I REALLY need&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Computer Type : Other Computer &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"ect"..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;/plugin_output&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I've tried extracting, and filtering, I believe Regex may work, but that is where I'm at.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 14:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606038#M210741</guid>
      <dc:creator>Minasdad</dc:creator>
      <dc:date>2022-07-19T14:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-Valued Field help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606040#M210742</link>
      <description>&lt;P&gt;Have you checked my answer in&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Suggestions-for-Tenable-csv-field-extraction/m-p/606026/highlight/true#M210735?" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Suggestions-for-Tenable-csv-field-extraction/m-p/606026/highlight/true#M210735?&lt;/A&gt;&amp;nbsp; This field is not multivalued, just multi-line. &amp;nbsp;Yes, rex should be able to help.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 19:09:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606040#M210742</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-18T19:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-Valued Field help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606041#M210743</link>
      <description>&lt;P&gt;Tried both solutions, at this point I'm working with rex to see if I can isolate the data needed.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 19:16:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606041#M210743</guid>
      <dc:creator>Minasdad</dc:creator>
      <dc:date>2022-07-18T19:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-Valued Field help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606175#M210811</link>
      <description>&lt;P&gt;even when I use variations or use regex it seems to return every event in the sourcetype. Isolating the string " Computer SerialNumber" in the "InputText" field seems to be no Bueno&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| spath input=pluginText ``` this gives you a field plugin_output ```
| rex field=plugin_output "Computer SerialNumber: (?&amp;lt;serialNumber&amp;gt;.+)"&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Jul 2022 13:31:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606175#M210811</guid>
      <dc:creator>Minasdad</dc:creator>
      <dc:date>2022-07-19T13:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a Multi-Valued Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606199#M210814</link>
      <description>&lt;P&gt;sourcetype="tenable:sc:vuln"sourcetype="tenable:sc:vuln" pluginID=24270 | rex field=pluginText max_match=100 "\\n\s+-\s(?&amp;lt;SerialNumber&amp;gt;[^\\n]*)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Latest try, still returns the event without isolating the string and value required.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 15:04:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606199#M210814</guid>
      <dc:creator>Minasdad</dc:creator>
      <dc:date>2022-07-19T15:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a Multi-Valued Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606206#M210818</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;Latest try, still returns the event without isolating the string and value required.&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you use "Smart Mode" and look in the left-hand side, do you see an additional field like SerialNumber? &amp;nbsp;Alternatively, you can use &lt;FONT face="andale mono,times"&gt;| table SerialNumber pluginText&lt;/FONT&gt; as a test method to see if SerialNumber is extracted.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 16:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606206#M210818</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-19T16:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a Multi-Valued Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606207#M210819</link>
      <description>&lt;P&gt;Yes, at this point I believe it will take a regex group capture.&amp;nbsp; Using regex is extremely new to me, but from what I'm researching it may be the best option to tackle it.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 16:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606207#M210819</guid>
      <dc:creator>Minasdad</dc:creator>
      <dc:date>2022-07-19T16:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a Multi-Valued Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606213#M210824</link>
      <description>&lt;P&gt;"Yes" SerialNumber field is extracted (and has the right values)? &amp;nbsp;Or yes otherwise? &amp;nbsp;It seems that I'm missing some finer points in the requirement.&lt;/P&gt;&lt;P&gt;If you need specific pointers, you can post&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Sample data (sanitize as necessary)&lt;/LI&gt;&lt;LI&gt;Expected output from sample data (including formating/listing considerations)&lt;/LI&gt;&lt;LI&gt;Sample code you have applied (reduce to the part relevant to the question)&lt;/LI&gt;&lt;LI&gt;Output from sample code, with an explanation why the output does not meet your expectation (it may not be obvious to others)&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 19 Jul 2022 16:18:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606213#M210824</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-19T16:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a Multi-Valued Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606215#M210825</link>
      <description>&lt;P class="lia-align-left"&gt;No SerialNumber is not a field and cannot be extracted as a field. The field is "output_text" which has many lines of data that are seen as one value by spluck (.csv). If the Computer SerialNumber line cannot be extracted as a field, then I'm attempting to use regex to do a group capture involving the string itself.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 16:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606215#M210825</guid>
      <dc:creator>Minasdad</dc:creator>
      <dc:date>2022-07-19T16:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a Multi-Valued Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606216#M210826</link>
      <description>&lt;P&gt;What I meant to ask is whether the regex extracts SerialNumber.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=output_text "Computer SerialNumber: (?&amp;lt;SerialNumber&amp;gt;.+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;(In my code from the other thread, the field would be named "serialNumber" instead of "SerialNumber".)&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 16:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606216#M210826</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-19T16:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a Multi-Valued Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606217#M210827</link>
      <description>&lt;P&gt;No upon executing your query it simply returns every event from the sourcetype, looking to the left at all fields does not show an extraction for "SerialNumber".&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 16:36:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606217#M210827</guid>
      <dc:creator>Minasdad</dc:creator>
      <dc:date>2022-07-19T16:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a Multi-Valued Field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606221#M210831</link>
      <description>&lt;P&gt;Maybe back to the beginning. &amp;nbsp;Let's test with _raw.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "Computer SerialNumber\s*:\s*(?&amp;lt;SerialNumber&amp;gt;.+)"&lt;/LI-CODE&gt;&lt;P&gt;Note: I see a space between the string "SerialNumber" and the colon in your data illustration, but my previous code didn't address that. &amp;nbsp;That was my omission. &amp;nbsp;This one handles common variants vendors might print their data. &amp;nbsp;If space handling is the problem, you can add back field restriction.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 17:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-Multi-Valued-Field/m-p/606221#M210831</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-19T17:55:29Z</dc:date>
    </item>
  </channel>
</rss>

