<?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: Problem with csv file import: how to prevent event doubling? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-csv-file-import-how-to-prevent-event-doubling/m-p/86397#M17962</link>
    <description>&lt;P&gt;You can't modify existing data in the index. Splunk isn't a general-purpose database where you can do something like that.&lt;/P&gt;

&lt;P&gt;If you're just working with CSV data and it's not large volumes of data, you could use the CSVs as lookups and work with them directly that way using &lt;CODE&gt;inputlookup&lt;/CODE&gt;, without going via a Splunk index.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2013 15:58:55 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-01-14T15:58:55Z</dc:date>
    <item>
      <title>Problem with csv file import: how to prevent event doubling?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-csv-file-import-how-to-prevent-event-doubling/m-p/86396#M17961</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am importing a csv file (database dump) with the following format:&lt;/P&gt;

&lt;P&gt;Header:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FirstName; LastName; EntryDate; ExitDate; InternalName; Remarks; Description; Phone; PhoneMobile; City; Building; Floor; Room; CentralAccount; DefaultEmailAddress; IsInActive; IsTerminalServerAllowed; IsExternal; PersonalTitle; PersonnelNumber; XDateInserted; XDateUpdated
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Example Event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;XXXX;XXXX;XX.XX.XXXX XX:XX:XX;XX.XX.XXXX XX:XX:XX;XXXX, XXXX;;TER, 2012-02-27;;;;;;;XXXXX;XXXX@XXXX.de;True;True;False;;00430160;XX.XX.XXXX;XX.XX.XXXX
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunkd does the import and slo indexes the data, but it only adds the data and does not compare it or delete the old dump data. So after four/n import/index-cycles i do have every event four/n times in splunk.&lt;/P&gt;

&lt;P&gt;I configured the import with the GUI but found no way to prevent my data from being added instead of actualized. What do i have to do?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 15:53:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-with-csv-file-import-how-to-prevent-event-doubling/m-p/86396#M17961</guid>
      <dc:creator>BastianSchlaak</dc:creator>
      <dc:date>2013-01-14T15:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with csv file import: how to prevent event doubling?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-csv-file-import-how-to-prevent-event-doubling/m-p/86397#M17962</link>
      <description>&lt;P&gt;You can't modify existing data in the index. Splunk isn't a general-purpose database where you can do something like that.&lt;/P&gt;

&lt;P&gt;If you're just working with CSV data and it's not large volumes of data, you could use the CSVs as lookups and work with them directly that way using &lt;CODE&gt;inputlookup&lt;/CODE&gt;, without going via a Splunk index.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 15:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-with-csv-file-import-how-to-prevent-event-doubling/m-p/86397#M17962</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-01-14T15:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with csv file import: how to prevent event doubling?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-csv-file-import-how-to-prevent-event-doubling/m-p/86398#M17963</link>
      <description>&lt;P&gt;the dump file has about 120k events in it. i do not want to eidt the data with spunk. But i think it must be possible that spunk either compares still imported events with new events and only imports new events or that it deletes old events before importing new events.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 16:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-with-csv-file-import-how-to-prevent-event-doubling/m-p/86398#M17963</guid>
      <dc:creator>BastianSchlaak</dc:creator>
      <dc:date>2013-01-14T16:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with csv file import: how to prevent event doubling?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-csv-file-import-how-to-prevent-event-doubling/m-p/86399#M17964</link>
      <description>&lt;P&gt;You're free to think whatever you want, but there are no mechanisms within Splunk to compare new data with existing data during indexing.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2013 16:07:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-with-csv-file-import-how-to-prevent-event-doubling/m-p/86399#M17964</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-01-14T16:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with csv file import: how to prevent event doubling?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-with-csv-file-import-how-to-prevent-event-doubling/m-p/86400#M17965</link>
      <description>&lt;P&gt;You need to craft your database query so that your only exporting newer events.&lt;/P&gt;

&lt;P&gt;You could do an initial dump to get historical data populated but after that use a more refined query.&lt;/P&gt;

&lt;P&gt;Looking at your example data it doesn't seem to be a time series so it is probably better if you used Ayn's suggestion of just using it as a lookup.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2013 00:42:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-with-csv-file-import-how-to-prevent-event-doubling/m-p/86400#M17965</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2013-01-15T00:42:20Z</dc:date>
    </item>
  </channel>
</rss>

