<?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: Forwarder keeps input duplicate event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/564021#M100458</link>
    <description>&lt;P&gt;Thanks for your&amp;nbsp;recommendation,&lt;/P&gt;&lt;P&gt;I think I understand&amp;nbsp; the cause of this problem.&lt;/P&gt;&lt;P&gt;I'll try another way to index those log file.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 04:45:58 GMT</pubDate>
    <dc:creator>slasyang</dc:creator>
    <dc:date>2021-08-20T04:45:58Z</dc:date>
    <item>
      <title>Forwarder keeps input duplicate event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/563908#M100433</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a log server with universal forwarder and some Linux server,&lt;/P&gt;&lt;P&gt;and I set a cronjob to make those Linux server upload their /var/log/secure and /var/log/messages to log server every 10 mins, and universal forwarder will monitor them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But every time, when linux server upload their log files to log&amp;nbsp; server,&lt;/P&gt;&lt;P&gt;universal forwarder will index not only difference part but entire files,&lt;/P&gt;&lt;P&gt;and it caused a lot of waste of license.&lt;/P&gt;&lt;P&gt;here is my inputs.conf&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;[monitor://D:\Log\Linux\*\messages]&lt;BR /&gt;sourcetype = message&lt;BR /&gt;index = os&lt;BR /&gt;host_segment = 3&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;How can I fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 08:37:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/563908#M100433</guid>
      <dc:creator>slasyang</dc:creator>
      <dc:date>2021-08-19T08:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder keeps input duplicate event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/563911#M100434</link>
      <description>&lt;P&gt;How are you sending the Linux logs to your Windows log server? What exactly is the content of your cron job on your Linux servers?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 08:58:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/563911#M100434</guid>
      <dc:creator>jwalthour</dc:creator>
      <dc:date>2021-08-19T08:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder keeps input duplicate event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/563915#M100435</link>
      <description>&lt;P&gt;First, It copy secure log and messages log to a temp folder,&lt;/P&gt;&lt;P&gt;then use FTP command to PUT the file to windows log server.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 09:09:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/563915#M100435</guid>
      <dc:creator>slasyang</dc:creator>
      <dc:date>2021-08-19T09:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder keeps input duplicate event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/563921#M100436</link>
      <description>&lt;P&gt;And each time you FTP the entire log file to the Windows log server or just the additions?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 09:37:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/563921#M100436</guid>
      <dc:creator>jwalthour</dc:creator>
      <dc:date>2021-08-19T09:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder keeps input duplicate event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/563924#M100437</link>
      <description>&lt;P&gt;I FTP the entire log file to overwrite the last one.&lt;/P&gt;&lt;P&gt;In my cognition,&lt;/P&gt;&lt;P&gt;forwarder will continue to index event from the end of the last file,&lt;/P&gt;&lt;P&gt;not from the first line.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 09:47:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/563924#M100437</guid>
      <dc:creator>slasyang</dc:creator>
      <dc:date>2021-08-19T09:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder keeps input duplicate event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/563936#M100439</link>
      <description>&lt;P&gt;Except that you’re not just adding events to an existing file; you’re recreating the file each time you overwrite it. I’d need to know more details, but something about what you’re doing triggers Splunk to see it as a new file. I’d advise consulting this troubleshooting guide below to figure out why Splunk is seeing it as a new file and, possibly, how to prevent it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.splunk.com/Community:Troubleshooting_Monitor_Inputs" target="_blank" rel="noopener"&gt;https://wiki.splunk.com/Community:Troubleshooting_Monitor_Inputs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I’d also recommend you get a proper syslog server set up to accomplish this task in the best way possible.&lt;/P&gt;&lt;P&gt;If this solved your problem, please mark it as the solution.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 12:35:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/563936#M100439</guid>
      <dc:creator>jwalthour</dc:creator>
      <dc:date>2021-08-19T12:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder keeps input duplicate event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/564021#M100458</link>
      <description>&lt;P&gt;Thanks for your&amp;nbsp;recommendation,&lt;/P&gt;&lt;P&gt;I think I understand&amp;nbsp; the cause of this problem.&lt;/P&gt;&lt;P&gt;I'll try another way to index those log file.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 04:45:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-keeps-input-duplicate-event/m-p/564021#M100458</guid>
      <dc:creator>slasyang</dc:creator>
      <dc:date>2021-08-20T04:45:58Z</dc:date>
    </item>
  </channel>
</rss>

