<?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 can I collect to generate more sample data? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-to-generate-more-sample-data/m-p/361645#M65941</link>
    <description>&lt;P&gt;Hey&lt;/P&gt;

&lt;P&gt;I believe that your best solution is to use eventgen.&lt;/P&gt;

&lt;P&gt;The reason the field cluster doesn't show in the mock index is that collect gets only the _raw data into the new index (and allows you to change host and source and sourcetype which are metada fields), and cluster is a search time created field.&lt;/P&gt;

&lt;P&gt;Collect is not intended for generating "sample" data.  Check eventgen&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/1924/"&gt;https://splunkbase.splunk.com/app/1924/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Mar 2018 16:12:50 GMT</pubDate>
    <dc:creator>tiagofbmm</dc:creator>
    <dc:date>2018-03-16T16:12:50Z</dc:date>
    <item>
      <title>How can I collect to generate more sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-to-generate-more-sample-data/m-p/361644#M65940</link>
      <description>&lt;P&gt;I'm trying to perform a collect with the intention of making my data more heterogeneous. Meaning if I have data from only one host, I want to collect the same data but with a different host and some other different fields. Like _time for instance.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mock | eval _time = _time + 86400, cluster = "EDS" | collect index=mock host = "new_host"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So the new data comes with the same _raw and new host, but the _time field stays the same as the original, meaning I can't collect the data and tell that it belongs to the next day. The field cluster also does not get collected. Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 16:02:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-to-generate-more-sample-data/m-p/361644#M65940</guid>
      <dc:creator>greggz</dc:creator>
      <dc:date>2018-03-16T16:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I collect to generate more sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-to-generate-more-sample-data/m-p/361645#M65941</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;

&lt;P&gt;I believe that your best solution is to use eventgen.&lt;/P&gt;

&lt;P&gt;The reason the field cluster doesn't show in the mock index is that collect gets only the _raw data into the new index (and allows you to change host and source and sourcetype which are metada fields), and cluster is a search time created field.&lt;/P&gt;

&lt;P&gt;Collect is not intended for generating "sample" data.  Check eventgen&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/1924/"&gt;https://splunkbase.splunk.com/app/1924/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 16:12:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-to-generate-more-sample-data/m-p/361645#M65941</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-16T16:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I collect to generate more sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-to-generate-more-sample-data/m-p/361646#M65942</link>
      <description>&lt;P&gt;Hi @greggz, &lt;/P&gt;

&lt;P&gt;I'm not sure &lt;CODE&gt;cluster&lt;/CODE&gt; field directly indexed in index but I have tried to add it in &lt;CODE&gt;_raw&lt;/CODE&gt;. Can you please try below search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mock | eval _time = _time + 86400, _raw=_raw." cluster=\"EDS\"" | collect index=mock host = "new_host"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 16:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-to-generate-more-sample-data/m-p/361646#M65942</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-03-16T16:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I collect to generate more sample data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-to-generate-more-sample-data/m-p/361647#M65943</link>
      <description>&lt;P&gt;In my experience with Splunk 6.6.x, the time fields applied via &lt;CODE&gt;collect&lt;/CODE&gt; will default to the value of &lt;CODE&gt;info_min_time&lt;/CODE&gt;, which is the earliest time of the search window. This is consistent with &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/Collect"&gt;the documentation about collect&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;I've had good luck using the &lt;CODE&gt;addtime=false&lt;/CODE&gt; option with collect. You might play with that and see if it works for you. I've had conversations with other folks for whom it didn't work, but we weren't able to trace the root cause.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 16:57:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-to-generate-more-sample-data/m-p/361647#M65943</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-03-16T16:57:56Z</dc:date>
    </item>
  </channel>
</rss>

