<?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: Field extraction based on position of character in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-based-on-position-of-character/m-p/499678#M195033</link>
    <description>&lt;P&gt;Worked. THANKS!!!&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2019 01:41:33 GMT</pubDate>
    <dc:creator>mbasharat</dc:creator>
    <dc:date>2019-10-11T01:41:33Z</dc:date>
    <item>
      <title>Field extraction based on position of character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-based-on-position-of-character/m-p/499676#M195031</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have field that gives me NETBOS of a Host.&lt;/P&gt;

&lt;P&gt;Sample Host Name: 123456W12345678&lt;/P&gt;

&lt;P&gt;The 7th character makes the identification for whether it is server or not a server.&lt;/P&gt;

&lt;P&gt;How to extract this 7th character into a new field "Classification"? Result using above example should be:&lt;BR /&gt;
field name=Classification&lt;BR /&gt;
field value=W&lt;/P&gt;

&lt;P&gt;Thanks in advance!!!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:52:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-based-on-position-of-character/m-p/499676#M195031</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2019-10-09T14:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction based on position of character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-based-on-position-of-character/m-p/499677#M195032</link>
      <description>&lt;P&gt;try this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval host="123456412345678" | rex field=host "(\d{6}|\w{6})?(?&amp;lt;Classification&amp;gt;\w{1})"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Oct 2019 16:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-based-on-position-of-character/m-p/499677#M195032</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-10-09T16:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction based on position of character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction-based-on-position-of-character/m-p/499678#M195033</link>
      <description>&lt;P&gt;Worked. THANKS!!!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 01:41:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction-based-on-position-of-character/m-p/499678#M195033</guid>
      <dc:creator>mbasharat</dc:creator>
      <dc:date>2019-10-11T01:41:33Z</dc:date>
    </item>
  </channel>
</rss>

