<?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 how to read a return value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-read-a-return-value/m-p/23204#M177450</link>
    <description>&lt;P&gt;hi,&lt;BR /&gt;
if we are using a return command in a subsearch. how can we read the output of the search.&lt;BR /&gt;
for ex:&lt;BR /&gt;
if the search is like:&lt;BR /&gt;
     index=newindex source=filename.txt| return $PC_Rename |fields PC_Rename&lt;/P&gt;

&lt;P&gt;how can we read the output of this search.PC_Rename consists of only one value , i just want t display the value in it.&lt;/P&gt;

&lt;P&gt;please help &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
thankyou for your time&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:44:39 GMT</pubDate>
    <dc:creator>smolcj</dc:creator>
    <dc:date>2020-09-28T12:44:39Z</dc:date>
    <item>
      <title>how to read a return value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-read-a-return-value/m-p/23204#M177450</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;
if we are using a return command in a subsearch. how can we read the output of the search.&lt;BR /&gt;
for ex:&lt;BR /&gt;
if the search is like:&lt;BR /&gt;
     index=newindex source=filename.txt| return $PC_Rename |fields PC_Rename&lt;/P&gt;

&lt;P&gt;how can we read the output of this search.PC_Rename consists of only one value , i just want t display the value in it.&lt;/P&gt;

&lt;P&gt;please help &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
thankyou for your time&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-read-a-return-value/m-p/23204#M177450</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2020-09-28T12:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to read a return value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-read-a-return-value/m-p/23205#M177451</link>
      <description>&lt;P&gt;Have a look at the &lt;CODE&gt;format&lt;/CODE&gt; command. It lets you define in which format subsearch results are returned, so you can define a format that is suitable for using with &lt;CODE&gt;eval&lt;/CODE&gt; for instance if you want to write the value to a variable that you then use for showing somewhere like a SingleValue module.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 15:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-read-a-return-value/m-p/23205#M177451</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-11-05T15:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to read a return value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-read-a-return-value/m-p/23206#M177452</link>
      <description>&lt;P&gt;Thanks Ayn for your response, but when i look into format command, it needs 6 args, but i just want to read the value returned by my search in a variable and i want to display it in another dashboard or form using that variable. i am stuck with reading the returned value.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2012 05:22:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-read-a-return-value/m-p/23206#M177452</guid>
      <dc:creator>smolcj</dc:creator>
      <dc:date>2012-11-06T05:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to read a return value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-read-a-return-value/m-p/23207#M177453</link>
      <description>&lt;P&gt;Yes? What does the number of arguments have to do with it? I don't see how using &lt;CODE&gt;format&lt;/CODE&gt; would not be the way forward.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2012 09:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-read-a-return-value/m-p/23207#M177453</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-11-06T09:35:30Z</dc:date>
    </item>
  </channel>
</rss>

