Getting Data In

how to upload oracle table dump or CSV files in splunk collection?

abarnwal
New Member

Hi All
We have a requirement to upload oracle table dump to splunk collection. We have generated dump in CSV file format but couldn't find any utility to upload the same in splunk collection. We have got to know splunk collection works in similar fashion as Mongo DB collection. We have found a command to upload CSV file in mongo DB collection but didn't find any option to run same command in splunk. Please let us know if there is any option to achieve the same.

Thanks in advance

Tags (2)
0 Karma

abarnwal
New Member

@Neelamssantosh, Thanks for your reply.
The link which you have provided is for creating file based lookups to search data more efficiently.
My requirement is different. I need to load oracle table dump/CSV files in splunk KV store collection.
Please refer to below link to know more about KV store collection:
http://dev.splunk.com/view/SP-CAAAEZT

0 Karma

neelamssantosh
Contributor

If the csv/file and splunk are in same location then use the below link upto "upload lookup table"
http://docs.splunk.com/Documentation/Splunk/6.2.3/PivotTutorial/AddlookupfilestoSplunk

then to search/access the data use the command,
"| lookup filename.csv" or "| inputlookup filename.csv"

For more information,
http://docs.splunk.com/Documentation/Splunk/6.2.3/Knowledge/Addfieldsfromexternaldatasources

0 Karma

abarnwal
New Member

Below is the command to load csv file in mongo DB collection:

mongoimport --db users --collection contacts --type csv --headerline --file /opt/backups/contacts.csv

Here collection name is contacts and CSV file name is contacts.csv.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...