<?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: Importing csv files from directory in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531647#M89426</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226635"&gt;@Sasquatchatmars&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as I said, Splunk reads a file and, if there are differences, indexs the file or the new lines, otherwise it doean't index the file.&lt;/P&gt;&lt;P&gt;Adding a column with timestamp you modify every time the file so splunk understand that has to index it.&lt;/P&gt;&lt;P&gt;Good for you.&lt;/P&gt;&lt;P&gt;Please accept the answer for the other people of Community.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 07:28:56 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-12-02T07:28:56Z</dc:date>
    <item>
      <title>Importing csv files from directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531511#M89403</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have been trying to monitor a directory with csv files. Let me explain. I have multiple PS scripts running and they are exporting the results to csv files in a directory. I have configured a data input on the corresponding directory and whitelisted the csv files. Which gives me the following in the input.conf file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor://C:\Program Files\Splunk\etc\apps\search\bin\Powershell\Results]
disabled = false
index = powershell_scripts
whitelist = \.csv$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everytime I run a PS script to test if the input works, the script creates the csv file or updates it but it isn't ingested in Splunk. Does someone knows why this could be?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sasquatchatmars&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 13:05:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531511#M89403</guid>
      <dc:creator>Sasquatchatmars</dc:creator>
      <dc:date>2020-12-01T13:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Importing csv files from directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531512#M89404</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226635"&gt;@Sasquatchatmars&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If the result is always the same, the file isn't indexed twice.&lt;/P&gt;&lt;P&gt;If you could run the PS script from Splunk as scripted inputs, you don't have any problem because the script output is sent directly to Splunk.&lt;/P&gt;&lt;P&gt;For more infos, see at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/AdvancedDev/ScriptedInputsIntro" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/AdvancedDev/ScriptedInputsIntro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 13:10:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531512#M89404</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-12-01T13:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Importing csv files from directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531514#M89405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It doesn't indexes it at all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the modular input. Somehow at some points the scripts sees some kind of errors because it is based on a list of servers. These servers are not always working so it generates an error. At that moment the idexing stops and doesn't continue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way I tried indexing it file by file which works. But what i really want is to monitor all the csv files in the directory without everytime needing to specify the file path in the data inputs.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bob van Scheijndel&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 13:19:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531514#M89405</guid>
      <dc:creator>Sasquatchatmars</dc:creator>
      <dc:date>2020-12-01T13:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Importing csv files from directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531519#M89407</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226635"&gt;@Sasquatchatmars&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the content of the files is frequently the same or it's always different?&lt;/P&gt;&lt;P&gt;If it's always the same, Splunk doesn't index twice a file also with a different name.&lt;/P&gt;&lt;P&gt;The filenames are always the same or ther are different?&lt;/P&gt;&lt;P&gt;try to add crcSalt = &amp;lt;SOURCE&amp;gt; to the input stanza and restart forwarder.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 13:45:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531519#M89407</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-12-01T13:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing csv files from directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531644#M89425</link>
      <description>&lt;P class="lia-align-left"&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&lt;/P&gt;&lt;P class="lia-align-left"&gt;This did work tahnk you but I found I found an easier way. I just added a TimeStamp column to my csv file so the file changes every time.&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Thank you anyway!&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Sasquatchatmars&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 07:16:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531644#M89425</guid>
      <dc:creator>Sasquatchatmars</dc:creator>
      <dc:date>2020-12-02T07:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Importing csv files from directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531647#M89426</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226635"&gt;@Sasquatchatmars&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as I said, Splunk reads a file and, if there are differences, indexs the file or the new lines, otherwise it doean't index the file.&lt;/P&gt;&lt;P&gt;Adding a column with timestamp you modify every time the file so splunk understand that has to index it.&lt;/P&gt;&lt;P&gt;Good for you.&lt;/P&gt;&lt;P&gt;Please accept the answer for the other people of Community.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 07:28:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531647#M89426</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-12-02T07:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Importing csv files from directory</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531656#M89427</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks yes indeed, you said that&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Oh sorry I forgot, I'll accept it right away.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sasquatchatmars&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 08:29:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Importing-csv-files-from-directory/m-p/531656#M89427</guid>
      <dc:creator>Sasquatchatmars</dc:creator>
      <dc:date>2020-12-02T08:29:34Z</dc:date>
    </item>
  </channel>
</rss>

