<?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 show a substr in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-a-substr/m-p/267446#M80460</link>
    <description>&lt;P&gt;Try with quotes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;baseSearch | eval id = substr("detail.id",2,7)| table id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 01 Apr 2016 09:39:56 GMT</pubDate>
    <dc:creator>javiergn</dc:creator>
    <dc:date>2016-04-01T09:39:56Z</dc:date>
    <item>
      <title>how to show a substr</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-a-substr/m-p/267445#M80459</link>
      <description>&lt;P&gt;I am doing a substr and want to see that in a table, however it just gives no results&lt;/P&gt;

&lt;P&gt;baseSearch | eval id = substr(detail.id,2,7)| table id&lt;/P&gt;

&lt;P&gt;I would expect to see a table of id's that have been substringed, however I get no results found?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 09:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-a-substr/m-p/267445#M80459</guid>
      <dc:creator>dan_pudwell</dc:creator>
      <dc:date>2016-04-01T09:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to show a substr</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-a-substr/m-p/267446#M80460</link>
      <description>&lt;P&gt;Try with quotes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;baseSearch | eval id = substr("detail.id",2,7)| table id
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Apr 2016 09:39:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-a-substr/m-p/267446#M80460</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-04-01T09:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to show a substr</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-a-substr/m-p/267447#M80461</link>
      <description>&lt;P&gt;I just figured this out and went to add my own answer!&lt;BR /&gt;
single quotes work as well&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 09:46:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-a-substr/m-p/267447#M80461</guid>
      <dc:creator>dan_pudwell</dc:creator>
      <dc:date>2016-04-01T09:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to show a substr</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-a-substr/m-p/267448#M80462</link>
      <description>&lt;P&gt;So will dollar-signs.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 14:14:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-a-substr/m-p/267448#M80462</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-04-01T14:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to show a substr</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-show-a-substr/m-p/267449#M80463</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have DB field which has value like -&lt;BR /&gt;
DB = arn:aws:rds:eu-west-1:354706231380:db:we1abcdeslfwtya&lt;BR /&gt;
I want to print we1abcdeslfwtya&lt;BR /&gt;
And below is my query -&lt;BR /&gt;
| rename results{}.total_amortized_cost as Total_amor , results{}.resource_identifier as DB | eval n=substr(DB,15) | table DB , n&lt;BR /&gt;
However, I get the n column in table as blank. I dont know whats wrong happening here. I tried with double quotes ( " ) and single quotes ( ' ) both for DB and it doesn't work. Like substr("DB",15)&lt;BR /&gt;
Can someone help please.&lt;BR /&gt;
Thanks in advance&lt;BR /&gt;
Regards,&lt;BR /&gt;
Sumeet&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-show-a-substr/m-p/267449#M80463</guid>
      <dc:creator>sumeet20rani</dc:creator>
      <dc:date>2020-09-29T23:44:41Z</dc:date>
    </item>
  </channel>
</rss>

