<?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 remove first 8 numbers of a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-first-8-numbers-of-a-field/m-p/523198#M147567</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/69091"&gt;@adrianrepublic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval device=867723030939341 
|rex field=device "\d{8}(?&amp;lt;deviceid&amp;gt;.*)"
| table device deviceid&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rex-digits.jpg" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11137iF1F4D2C7705D9890/image-size/large?v=v2&amp;amp;px=999" role="button" title="rex-digits.jpg" alt="rex-digits.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2020 14:02:52 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2020-10-06T14:02:52Z</dc:date>
    <item>
      <title>How to remove first 8 numbers of a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-first-8-numbers-of-a-field/m-p/523193#M147565</link>
      <description>&lt;P&gt;I have a set of devices that are identified by a very long 15 number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first 8 numbers are just a prefix which we would like to hide and only display last 7 numbers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;867723030939341 is an example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=index1 sourcetype=devices | stats count by device....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a ay to rem&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 13:51:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-first-8-numbers-of-a-field/m-p/523193#M147565</guid>
      <dc:creator>adrianrepublic</dc:creator>
      <dc:date>2020-10-06T13:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove first 8 numbers of a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-first-8-numbers-of-a-field/m-p/523196#M147566</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex field=device mode=sed "s/^\d{8}//g"&lt;/LI-CODE&gt;&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval device=substr(device,9)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 Oct 2020 13:59:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-first-8-numbers-of-a-field/m-p/523196#M147566</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-06T13:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove first 8 numbers of a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-first-8-numbers-of-a-field/m-p/523198#M147567</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/69091"&gt;@adrianrepublic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval device=867723030939341 
|rex field=device "\d{8}(?&amp;lt;deviceid&amp;gt;.*)"
| table device deviceid&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rex-digits.jpg" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11137iF1F4D2C7705D9890/image-size/large?v=v2&amp;amp;px=999" role="button" title="rex-digits.jpg" alt="rex-digits.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 14:02:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-first-8-numbers-of-a-field/m-p/523198#M147567</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-10-06T14:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove first 8 numbers of a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-first-8-numbers-of-a-field/m-p/523200#M147568</link>
      <description>&lt;P&gt;Worked a treat!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 14:03:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-first-8-numbers-of-a-field/m-p/523200#M147568</guid>
      <dc:creator>adrianrepublic</dc:creator>
      <dc:date>2020-10-06T14:03:54Z</dc:date>
    </item>
  </channel>
</rss>

