Getting Data In

CSV File Ingestion problem

rajyah
Communicator

Good day sirs, would you be so kind to please help me regarding csv file ingestion? Here's the scenario:

When I try to upload the csv manually from remote server, the data within it are ingested. But if I monitor it, it wont. This csv was rsynced from remote server to local, I assumed it was because of permission but I checked it wasnt the case. Are there still anything I need to check? Using btool? How?

Any thoughts will do. Please help.

Thank you.

Tags (2)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi rajyah,
when you say "I monitor" do you mean using a Universal Forwarder?
If yes, at first check if it's correctly configured:

  • firewall ports are open (check them with telnet <Indexer_Ip_Address> 9997)
  • Splunk Universal Forwarder is up and running (/opt/splunkforwarder/bin/splunk status)
  • grants of the csv files are ok (644)
  • Splunk Forwarder's outputs.conf it's OK (there a room for the Indexer), you can check it searching on Indexer: index=_internal host=your_host
  • Splunk Forwarder's inputs.conf it's OK (the csv path in the monitor command is correct)

After these checks, you can analyze your situation.

Bye.
Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi rajyah,
when you say "I monitor" do you mean using a Universal Forwarder?
If yes, at first check if it's correctly configured:

  • firewall ports are open (check them with telnet <Indexer_Ip_Address> 9997)
  • Splunk Universal Forwarder is up and running (/opt/splunkforwarder/bin/splunk status)
  • grants of the csv files are ok (644)
  • Splunk Forwarder's outputs.conf it's OK (there a room for the Indexer), you can check it searching on Indexer: index=_internal host=your_host
  • Splunk Forwarder's inputs.conf it's OK (the csv path in the monitor command is correct)

After these checks, you can analyze your situation.

Bye.
Giuseppe

0 Karma

rajyah
Communicator

Oh, I forgot to mention sir that Im only running single instance without forwarders. I see, so it must be permission. Seems weird though, other CSVs has same grants but was still ingested. Ill double check sir. Thank you and Ill add an update sir after confirming.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi rajyah,
in this case, check if the path you configured in your inputs.conf is correct, then be sure that this file isn't the copy of another file because Splunk doesn't index twice a file (you can do it only when you manually index).
To force to reindex, you can put in your inputs.conf the option

crcsalt = <SOURCE>

Anf then change the filename.

Bye.
Giuseppe

0 Karma

rajyah
Communicator

Sir, I just found an oddity behind this problem. If I use 'index once' instead of 'continous monitoring', the data in csv are indexed but when I choose the latter it doesn't. Please enlighten me.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Using "once" it's the same thing that manually index.
did you tried crcSalt?

Bye.
Giuseppe

0 Karma

rajyah
Communicator

Tried crcSalt. Thank you!

0 Karma

rajyah
Communicator

Is there a way sir to check the splunkd.log? How?

0 Karma

gcusello
SplunkTrust
SplunkTrust

you can see splunkd.log directly on you Splunk server at

/opt/splunk/var/log/splunk 

or using Splunk with this search:

index=_internal sourcetype=splunkd

Bye.
Giuseppe

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...