<?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 do you add dummy events to a search result? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45764#M10898</link>
    <description>&lt;P&gt;Check out the new "makeresults" command&lt;/P&gt;</description>
    <pubDate>Sat, 07 Jan 2017 00:57:45 GMT</pubDate>
    <dc:creator>rstitt</dc:creator>
    <dc:date>2017-01-07T00:57:45Z</dc:date>
    <item>
      <title>How do you add dummy events to a search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45760#M10894</link>
      <description>&lt;P&gt;I'm currently producing a table from a search. There is some static data that needs to be added which is not in the index and needs to be added at search time. I'm toying with the idea to create a new search command to do this, is there an easier way?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* | table name phone
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let's assume I need to add another name?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* | dummy_event name=bob, phone=555-1234 |table name phone
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 May 2012 12:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45760#M10894</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2012-05-08T12:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do you add dummy events to a search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45761#M10895</link>
      <description>&lt;P&gt;There are a few options on how to do this without creating a custom search command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | append [ | stats count | fields - count | eval name="Bob" | eval phone="555-1234" ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or using a csv lookup file&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | outputlookup mydummyresults.csv append=t 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 May 2012 14:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45761#M10895</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2012-05-08T14:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do you add dummy events to a search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45762#M10896</link>
      <description>&lt;P&gt;creative, I think I'm going to hack together a quick script.&lt;/P&gt;</description>
      <pubDate>Thu, 10 May 2012 18:27:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45762#M10896</guid>
      <dc:creator>Marinus</dc:creator>
      <dc:date>2012-05-10T18:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you add dummy events to a search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45763#M10897</link>
      <description>&lt;P&gt;Since 6.3.0 you can use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Makeresults"&gt;link text&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 13:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45763#M10897</guid>
      <dc:creator>hegleg</dc:creator>
      <dc:date>2016-06-23T13:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do you add dummy events to a search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45764#M10898</link>
      <description>&lt;P&gt;Check out the new "makeresults" command&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2017 00:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45764#M10898</guid>
      <dc:creator>rstitt</dc:creator>
      <dc:date>2017-01-07T00:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do you add dummy events to a search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45765#M10899</link>
      <description>&lt;P&gt;while the accepted answer above works, it is a trick. the search command makeresults is the correct answer&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Makeresults"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Makeresults&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 23:51:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45765#M10899</guid>
      <dc:creator>greich</dc:creator>
      <dc:date>2017-07-18T23:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you add dummy events to a search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45766#M10900</link>
      <description>&lt;P&gt;Here is something that can help you... First, generate dummy columns and single row of results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=nothing_to_see_here |stats count| eval col1="beep" | eval col2="boop"|table col1 col2
┌──────┬──────┐
│ col1 │ col2 │
├──────┼──────┤
│ beep │ boop │
└──────┴──────┘
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Append data from another dummy search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nothing_to_see_here |stats count | eval col1="beep" | eval col2="boop" | table col1 col2 | append [search index=nothing_to_see_here | stats count | eval col1="science" | eval col2="magic" | table col1 col2 ]
┌─────────┬───────┐
│  col1   │ col2  │
├─────────┼───────┤
│ beep    │ boop  │
│ science │ magic │
└─────────┴───────┘
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Feb 2018 00:11:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45766#M10900</guid>
      <dc:creator>bbialek</dc:creator>
      <dc:date>2018-02-01T00:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you add dummy events to a search result?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45767#M10901</link>
      <description>&lt;P&gt;as mentioned above, the correct answer is the markresults command&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Makeresults"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Makeresults&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 08:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-add-dummy-events-to-a-search-result/m-p/45767#M10901</guid>
      <dc:creator>greich</dc:creator>
      <dc:date>2018-02-01T08:33:56Z</dc:date>
    </item>
  </channel>
</rss>

