<?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: Does Splunk have an echo command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111252#M29154</link>
    <description>&lt;P&gt;Why is the first | in front of stats needed? You don't need it to do just a search, but this stats command does not work without it. Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 08:19:40 GMT</pubDate>
    <dc:creator>pacmac</dc:creator>
    <dc:date>2019-12-12T08:19:40Z</dc:date>
    <item>
      <title>Does Splunk have an echo command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111242#M29144</link>
      <description>&lt;P&gt;Does Splunk have a command that could be used in the search field that would echo the response in the search results.  It would operate similar to a Linux echo.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;echo foo

&amp;gt; foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2015 11:13:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111242#M29144</guid>
      <dc:creator>TonyLeeVT</dc:creator>
      <dc:date>2015-03-28T11:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk have an echo command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111243#M29145</link>
      <description>&lt;P&gt;What are you trying to achieve?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2015 12:22:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111243#M29145</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-03-28T12:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk have an echo command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111244#M29146</link>
      <description>&lt;P&gt;|eval column='literal' &lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2015 14:47:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111244#M29146</guid>
      <dc:creator>nadid</dc:creator>
      <dc:date>2015-03-28T14:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk have an echo command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111245#M29147</link>
      <description>&lt;P&gt;there  no command in splunk that function exactly like the command ech of linux. but from a combination of command  you get the result that you want .&lt;/P&gt;

&lt;P&gt;and Display High values of a field , you can use commands such as "table"; "field" .....&lt;BR /&gt;
to change the field values you use the "eval"; ...&lt;/P&gt;

&lt;P&gt;you can use macro to simulate aproche&lt;/P&gt;

&lt;P&gt;or map command, see this example can help you:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=syslog sudo | stats count by user host | map search="search
index=ad_summary username=$user$ type_logon=ad_last_logon"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Mar 2015 16:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111245#M29147</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-03-28T16:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk have an echo command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111246#M29148</link>
      <description>&lt;P&gt;When entered in the search bar, no results are found.  Can you please be more specific?  Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2015 21:54:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111246#M29148</guid>
      <dc:creator>TonyLeeVT</dc:creator>
      <dc:date>2015-03-28T21:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk have an echo command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111247#M29149</link>
      <description>&lt;P&gt;Enter something in the search bar and it is returned in the search results.  Similar to echo.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2015 21:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111247#M29149</guid>
      <dc:creator>TonyLeeVT</dc:creator>
      <dc:date>2015-03-28T21:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk have an echo command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111248#M29150</link>
      <description>&lt;P&gt;Not sure that will do the trick.  Sorry.  Can you be more precise?  In fact, that answer looks like a direct copy and paste from an unrelated question and answer.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2015 22:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111248#M29150</guid>
      <dc:creator>TonyLeeVT</dc:creator>
      <dc:date>2015-03-28T22:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk have an echo command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111249#M29151</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count as echo | eval echo = "foo"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That'll produce one result with a field &lt;CODE&gt;echo&lt;/CODE&gt; and a value &lt;CODE&gt;"foo"&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2015 22:34:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111249#M29151</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-03-28T22:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk have an echo command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111250#M29152</link>
      <description>&lt;P&gt;Worked great, thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2015 22:40:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111250#M29152</guid>
      <dc:creator>TonyLeeVT</dc:creator>
      <dc:date>2015-03-28T22:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk have an echo command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111251#M29153</link>
      <description>&lt;P&gt;You can also do:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| localop | stats count | eval myliteral="Whatever" | table myliteral
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Mar 2015 01:13:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111251#M29153</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-03-29T01:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk have an echo command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111252#M29154</link>
      <description>&lt;P&gt;Why is the first | in front of stats needed? You don't need it to do just a search, but this stats command does not work without it. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 08:19:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111252#M29154</guid>
      <dc:creator>pacmac</dc:creator>
      <dc:date>2019-12-12T08:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Does Splunk have an echo command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111253#M29155</link>
      <description>&lt;P&gt;Without the pipe you're searching for the word "stats" .&lt;/P&gt;

&lt;P&gt;Note, by now there is the explicit command &lt;CODE&gt;| makeresults&lt;/CODE&gt; to create an empty result, it's slightly more efficient than stats and much more readable. &lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 14:23:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Does-Splunk-have-an-echo-command/m-p/111253#M29155</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2019-12-12T14:23:14Z</dc:date>
    </item>
  </channel>
</rss>

