<?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: can I insert data from the search field to test search expressions with in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/can-I-insert-data-from-the-search-field-to-test-search/m-p/674945#M231001</link>
    <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Makeresults" target="_blank" rel="noopener"&gt;makeresults&lt;/A&gt; can be used to generate search results. An example from the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Makeresults#3._Add_a_field_with_string_values" target="_self"&gt;documentation&lt;/A&gt;.&lt;/P&gt;&lt;PRE&gt;| makeresults&lt;BR /&gt;| eval test="buttercup rarity tenderhoof dash mcintosh fleetfoot mistmane"&lt;BR /&gt;| makemv delim=" " test &lt;BR /&gt;| mvexpand test&lt;/PRE&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;_time&lt;/TD&gt;&lt;TD&gt;test&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD width="50%"&gt;buttercup&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD width="50%"&gt;rarity&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD width="50%"&gt;tenderhoof&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD width="50%"&gt;dash&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD&gt;mcintosh&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD&gt;fleetfoot&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD&gt;mistmane&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can use `search` or any other commands as usual.&lt;/P&gt;&lt;PRE&gt;| makeresults&lt;BR /&gt;| eval test="buttercup rarity tenderhoof dash mcintosh fleetfoot mistmane"&lt;BR /&gt;| makemv delim=" " test &lt;BR /&gt;| mvexpand test&lt;BR /&gt;| search test="m*"&lt;/PRE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;_time&lt;/TD&gt;&lt;TD&gt;test&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="166.017px" height="25px"&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD width="166.017px" height="25px"&gt;mcintosh&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="166.017px" height="25px"&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD width="166.017px" height="25px"&gt;mistmane&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Sun, 21 Jan 2024 04:38:46 GMT</pubDate>
    <dc:creator>curben</dc:creator>
    <dc:date>2024-01-21T04:38:46Z</dc:date>
    <item>
      <title>can I insert data from the search field to test search expressions with</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-I-insert-data-from-the-search-field-to-test-search/m-p/170665#M186390</link>
      <description>&lt;P&gt;hello, I was wanting to do something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;insert "some test data key=value" | search ... 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;No data would actually be inserted, I would just use in order to test search commands. &lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2014 21:23:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-I-insert-data-from-the-search-field-to-test-search/m-p/170665#M186390</guid>
      <dc:creator>alexl1</dc:creator>
      <dc:date>2014-05-19T21:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: can I insert data from the search field to test search expressions with</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-I-insert-data-from-the-search-field-to-test-search/m-p/170666#M186391</link>
      <description>&lt;P&gt;There is no command to insert data for testing.  However, there are lots of ways to set up to test a search command:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Since search commands don't &lt;EM&gt;change&lt;/EM&gt; any data, why not just search on the production system? Cut the time range back to "last 15 minutes" or "last 4 hours" to minimize the search time.&lt;/LI&gt;
&lt;LI&gt;If you want to upload some test data, why not install a copy of free Splunk (or the trial license) on your laptop or desktop? Once you have a test instance set up, you can upload some real data and then use it to test your searches, etc.  Or use some test data...&lt;/LI&gt;
&lt;LI&gt;If you don't want to install a test server somewhere, you could create a test index and upload some data to it. Then just add &lt;CODE&gt;index=test&lt;/CODE&gt; at the beginning of you search.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Would any of these options work?&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2014 04:54:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-I-insert-data-from-the-search-field-to-test-search/m-p/170666#M186391</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-20T04:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: can I insert data from the search field to test search expressions with</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-I-insert-data-from-the-search-field-to-test-search/m-p/674945#M231001</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Makeresults" target="_blank" rel="noopener"&gt;makeresults&lt;/A&gt; can be used to generate search results. An example from the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Makeresults#3._Add_a_field_with_string_values" target="_self"&gt;documentation&lt;/A&gt;.&lt;/P&gt;&lt;PRE&gt;| makeresults&lt;BR /&gt;| eval test="buttercup rarity tenderhoof dash mcintosh fleetfoot mistmane"&lt;BR /&gt;| makemv delim=" " test &lt;BR /&gt;| mvexpand test&lt;/PRE&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;_time&lt;/TD&gt;&lt;TD&gt;test&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD width="50%"&gt;buttercup&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD width="50%"&gt;rarity&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD width="50%"&gt;tenderhoof&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD width="50%"&gt;dash&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD&gt;mcintosh&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD&gt;fleetfoot&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD&gt;mistmane&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can use `search` or any other commands as usual.&lt;/P&gt;&lt;PRE&gt;| makeresults&lt;BR /&gt;| eval test="buttercup rarity tenderhoof dash mcintosh fleetfoot mistmane"&lt;BR /&gt;| makemv delim=" " test &lt;BR /&gt;| mvexpand test&lt;BR /&gt;| search test="m*"&lt;/PRE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;_time&lt;/TD&gt;&lt;TD&gt;test&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="166.017px" height="25px"&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD width="166.017px" height="25px"&gt;mcintosh&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="166.017px" height="25px"&gt;2024-01-01 00:00:00&lt;/TD&gt;&lt;TD width="166.017px" height="25px"&gt;mistmane&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sun, 21 Jan 2024 04:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-I-insert-data-from-the-search-field-to-test-search/m-p/674945#M231001</guid>
      <dc:creator>curben</dc:creator>
      <dc:date>2024-01-21T04:38:46Z</dc:date>
    </item>
  </channel>
</rss>

