<?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 Is there an easy way to create fake data? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-easy-way-to-create-fake-data/m-p/618235#M106683</link>
    <description>&lt;P&gt;I am making a test in python where I want to validate if an ITSI kpi works as expected.&lt;/P&gt;
&lt;P&gt;Lets say I have an index called alerts&lt;/P&gt;
&lt;P&gt;And I want the following data in the index, because it should trigger an alert&lt;/P&gt;
&lt;P&gt;{"alert":"true", "time":"1666702756"}&lt;/P&gt;
&lt;P&gt;I know there is a splunk event gen application but it feels to big to add a simple line, what is the most simple way to add an event to an index? For example is it possible to do with an api call? I tried looking around but could not find a good example, for something that feels very trivial.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: we can not use the splunk python sdk as we use a custom proxy/url and the python sdk does not support any custom urls. We are able to run queries with our own python script so if it is possible with a spl query that is fine to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 13:56:46 GMT</pubDate>
    <dc:creator>sboogaar</dc:creator>
    <dc:date>2022-10-25T13:56:46Z</dc:date>
    <item>
      <title>Is there an easy way to create fake data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-easy-way-to-create-fake-data/m-p/618235#M106683</link>
      <description>&lt;P&gt;I am making a test in python where I want to validate if an ITSI kpi works as expected.&lt;/P&gt;
&lt;P&gt;Lets say I have an index called alerts&lt;/P&gt;
&lt;P&gt;And I want the following data in the index, because it should trigger an alert&lt;/P&gt;
&lt;P&gt;{"alert":"true", "time":"1666702756"}&lt;/P&gt;
&lt;P&gt;I know there is a splunk event gen application but it feels to big to add a simple line, what is the most simple way to add an event to an index? For example is it possible to do with an api call? I tried looking around but could not find a good example, for something that feels very trivial.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: we can not use the splunk python sdk as we use a custom proxy/url and the python sdk does not support any custom urls. We are able to run queries with our own python script so if it is possible with a spl query that is fine to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 13:56:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-easy-way-to-create-fake-data/m-p/618235#M106683</guid>
      <dc:creator>sboogaar</dc:creator>
      <dc:date>2022-10-25T13:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Easy way to create fake data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-easy-way-to-create-fake-data/m-p/618237#M106684</link>
      <description>&lt;P&gt;Have you looked at the collect command with output_format="hec" as you might be able to use it to create JSON events in the index for you?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 13:09:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-easy-way-to-create-fake-data/m-p/618237#M106684</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-10-25T13:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an easy way to create fake data?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-easy-way-to-create-fake-data/m-p/618259#M106691</link>
      <description>&lt;P&gt;| makeresults | eval _raw="{\"alert\":\"true\", \"time\":\"".now()."\"}"&lt;BR /&gt;| collect index=&amp;lt;index_name&amp;gt; source=&amp;lt;source_name&amp;gt; sourcetype=&amp;lt;source_type&amp;gt; output_format=raw&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 15:30:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-there-an-easy-way-to-create-fake-data/m-p/618259#M106691</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-25T15:30:59Z</dc:date>
    </item>
  </channel>
</rss>

