Getting Data In

.csv file taking more time for indexing

pragycho
Loves-to-Learn

Hi All ,
I am facing one issue for indexing.

I have .csv file from external resource and this .csv file size is 11236KB.

also configured data (access log) in data input.

want to generate report for AD Group details.

In .csv file and data(accesslog) , one field (user_id) is common so when we trying to generate report so .csv file is taking more time indexing and getting error fail to reopen lookup (.csv ) file.

Can you please help me on this ?

Labels (1)
0 Karma

Richfez
SplunkTrust
SplunkTrust

There appears to be some confusion over indexes and lookups. Let's step back a bit -

A lookup, which is a csv file in the lookups directory, can be used like | inputlookup <lookupname> to just "read the whole lookup in", or can be used as a lookup my search here | lookup <lookupname> <search fields> OUPUT <new fields> to augment existing data by lookup up a key value in your lookup and returning other data out of that matching lookup row into that event.

Indexed data is instead data ingested in an input. You access that with the regular search command (and the base search, the first one which doesn't need the word search in it.).

With that in mind, could you please describe again what it is you are doing, what's taking so long, and provide the actual whole search of your search? (The search you posted below starts in the middle with a 'dedup'. That's not how a search can start, so it must be a bad copy/paste or something.)

And please paste in searches as "code" using the little code button above.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What is your search?

---
If this reply helps you, Karma would be appreciated.
0 Karma

pragycho
Loves-to-Learn

-

dedup user_id | sort department,user_id | where bytes_in >0 |stats values("user_id") as User,values("dest_domain") as Application,values("bytes_in") as Bandwidth_used by department| rename department AS "AD Group"

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Where are you accessing the CSV file?

---
If this reply helps you, Karma would be appreciated.
0 Karma

pragycho
Loves-to-Learn

i am accessing field name (user_id , department) from .csv file and .csv file is available in lookup folder.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I see no lookup or inputlookup commands in your query. How are you getting fields from the lookup file?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...