<?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 a specific field (number &amp;quot;n&amp;quot;) from an event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-specific-field-number-quot-n-quot-from-an-event/m-p/486700#M136125</link>
    <description>&lt;P&gt;Here is one way to do it, using a Run Anywhere search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval yourEvent="12345 0.0 0.0 90 -2.3 51 985.7 12.3 12.3 12.3 0.000 0.000 22.4 41 0.0 0 0.0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 20 19 01"
| eval fields=split(yourEvent," ") | eval num=mvindex(fields,12)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;num=22.4&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2020 19:55:33 GMT</pubDate>
    <dc:creator>jpolvino</dc:creator>
    <dc:date>2020-01-13T19:55:33Z</dc:date>
    <item>
      <title>How to extract a specific field (number "n") from an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-specific-field-number-quot-n-quot-from-an-event/m-p/486699#M136124</link>
      <description>&lt;P&gt;How to extract a specific field from an event, like "awk '{print $13}'", In this example I want to extract field 13 (22.4):&lt;/P&gt;

&lt;P&gt;12345 0.0 0.0 90 -2.3 51 985.7 12.3 12.3 12.3 0.000 0.000 &lt;STRONG&gt;22.4&lt;/STRONG&gt; 41 0.0 0 0.0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 20 19 01&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 19:39:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-specific-field-number-quot-n-quot-from-an-event/m-p/486699#M136124</guid>
      <dc:creator>leifab</dc:creator>
      <dc:date>2020-01-13T19:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a specific field (number "n") from an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-specific-field-number-quot-n-quot-from-an-event/m-p/486700#M136125</link>
      <description>&lt;P&gt;Here is one way to do it, using a Run Anywhere search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval yourEvent="12345 0.0 0.0 90 -2.3 51 985.7 12.3 12.3 12.3 0.000 0.000 22.4 41 0.0 0 0.0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 0 20 19 01"
| eval fields=split(yourEvent," ") | eval num=mvindex(fields,12)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;num=22.4&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 19:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-specific-field-number-quot-n-quot-from-an-event/m-p/486700#M136125</guid>
      <dc:creator>jpolvino</dc:creator>
      <dc:date>2020-01-13T19:55:33Z</dc:date>
    </item>
  </channel>
</rss>

