<?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: Forcing eventgen to refresh normalised replacement files in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Forcing-eventgen-to-refresh-normalised-replacement-files/m-p/486170#M193663</link>
    <description>&lt;P&gt;&lt;STRONG&gt;TLDR&lt;/STRONG&gt;:&lt;BR /&gt;
You can not force it to use the updated replacement file.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Long answer&lt;/STRONG&gt;:&lt;BR /&gt;
EventGen is designed for large data volume generation. So EventGen will read the replacement file once and cache it for event token replacement. Think if when you generate every event, you read from file and replace it with a random value from the file, it will have unacceptable I/O latency.&lt;/P&gt;

&lt;P&gt;If you think it is critical for your requirement, you can make a feature request here: &lt;A href="https://github.com/splunk/eventgen/issues/new/choose"&gt;https://github.com/splunk/eventgen/issues/new/choose&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks for your feedback.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 02:40:50 GMT</pubDate>
    <dc:creator>lwu_splunk</dc:creator>
    <dc:date>2019-09-26T02:40:50Z</dc:date>
    <item>
      <title>Forcing eventgen to refresh normalised replacement files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Forcing-eventgen-to-refresh-normalised-replacement-files/m-p/486169#M193662</link>
      <description>&lt;P&gt;I am using eventgen to generate transaction type data, where I create an event in Splunk and then at some point in the future, I create a new event to revoke the initial event. It works like this&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;my first event is using a guid in the event&lt;/LI&gt;
&lt;LI&gt;a saved search runs periodically and searches for a select set of these events and writes the guids to an outputlookup&lt;/LI&gt;
&lt;LI&gt;this csv is then used by another eventgen sample to create the second revocation transaction&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;However, it seems that as eventgen randomises the replacement file at startup, when the saved search rewrites the outputlookup, eventgen is not aware of that change, so will continue to use the file. This means that the same guid can be potentially reused in (2) and new guids created in (1) are not candidates.&lt;/P&gt;

&lt;P&gt;I can see this in the log file&lt;/P&gt;

&lt;P&gt;Normalized replacement file /opt/splunk/etc/apps/app/lookups/guids.csv&lt;/P&gt;

&lt;P&gt;is there a way to force this to refresh?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 23:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Forcing-eventgen-to-refresh-normalised-replacement-files/m-p/486169#M193662</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2019-09-25T23:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing eventgen to refresh normalised replacement files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Forcing-eventgen-to-refresh-normalised-replacement-files/m-p/486170#M193663</link>
      <description>&lt;P&gt;&lt;STRONG&gt;TLDR&lt;/STRONG&gt;:&lt;BR /&gt;
You can not force it to use the updated replacement file.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Long answer&lt;/STRONG&gt;:&lt;BR /&gt;
EventGen is designed for large data volume generation. So EventGen will read the replacement file once and cache it for event token replacement. Think if when you generate every event, you read from file and replace it with a random value from the file, it will have unacceptable I/O latency.&lt;/P&gt;

&lt;P&gt;If you think it is critical for your requirement, you can make a feature request here: &lt;A href="https://github.com/splunk/eventgen/issues/new/choose"&gt;https://github.com/splunk/eventgen/issues/new/choose&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks for your feedback.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 02:40:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Forcing-eventgen-to-refresh-normalised-replacement-files/m-p/486170#M193663</guid>
      <dc:creator>lwu_splunk</dc:creator>
      <dc:date>2019-09-26T02:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing eventgen to refresh normalised replacement files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Forcing-eventgen-to-refresh-normalised-replacement-files/m-p/486171#M193664</link>
      <description>&lt;P&gt;Thanks. That's as I suspected, so no big deal. I am shutting down my instance daily for the night and I don't need nightly data, so I have saved searches that will update the file before shutdown, so will be in place for the next restart.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 07:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Forcing-eventgen-to-refresh-normalised-replacement-files/m-p/486171#M193664</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2019-09-26T07:17:55Z</dc:date>
    </item>
  </channel>
</rss>

