Splunk Search

Upload large file

mwdbhyat
Builder

Hi,

How does one upload files larger than 500mb? I get an error "File too large. The file selected is 996Mb. Maximum file size is 500Mb" Is this due to using the trial ?

Thanks

0 Karma
1 Solution

somesoni2
Revered Legend

The 500MB limit is for uploading file from Splunk Web, regardless of the license type.

http://docs.splunk.com/Documentation/Splunk/6.4.3/Data/Uploaddata

View solution in original post

AceAxis
Observer

The default upload size for files in Splunk is 500Mb to consider the browser memory usage. The good part is that this can be altered, as admins usually upload files 10 to 50 Gb in size using CLI ingestion. 

The command below can be used to change the upload size to 2Gb. Note - run the CMD as administrator.

echo [settings] > "C:\Program Files\Splunk\etc\system\local\web.conf"
echo max_upload_size = 2048 >> "C:\Program Files\Splunk\etc\system\local\web.conf"

size can be increased by increasing the limit. Post this restart the Splunk. 

cd "C:\Program Files\Splunk\bin"
splunk restart




0 Karma

PickleRick
SplunkTrust
SplunkTrust

Don't do that!

Firstly, it's not a good practice to put settings into system/local except for very few settings which are really, really local.

But most importantly, if you run the supplied commands, they will overwrite any settings you might have already had there! (and while it's not the best practice, people often put some stuff there; like cert definitions).

0 Karma

marnall
Motivator

For people finding this question in the years after 2016, you can set the max_upload_size setting in web.conf

[settings]
# set to the MB max
max_upload_size = 500
# you can also set a larger splunkdConnectionTimeout value so it wont timeout when uploading
splunkdConnectionTimeout=600

ref: https://docs.splunk.com/Documentation/Splunk/9.2.0/Admin/Webconf

0 Karma

Rizqi_Iskandar
Loves-to-Learn Lots

btw, where can i find web.conf in windows?

Because i cant find the right one to edit this file

0 Karma

inventsekar
SplunkTrust
SplunkTrust

You can find it here..

For list of all config files

https://docs.splunk.com/Documentation/Splunk/9.2.2/Admin/Listofconfigurationfiles

 

0 Karma

Rizqi_Iskandar
Loves-to-Learn Lots

I have edit the max_upload size from 500 to 8000 but still it cant upload enterprise security.

I try this way repeatly and restart splunk everytime i save this configuration, but nothing happen

Do you have other way to install splunk ES on windows? 

0 Karma

marnall
Motivator

What happens if you run btool on the settings stanza and grep for max_upload_size?

e.g.

/opt/splunk/bin/splunk btool web list settings | grep max_upload

 

If it shows a value other than 8000, then likely your web.conf file is in the wrong place, or being overridden by another.

0 Karma

Rizqi_Iskandar
Loves-to-Learn Lots

I think this is happen because its run on Windows

I will try to install it on Linux first and i will let you know if the problem fixed

thanks for the help dude

0 Karma

marnall
Motivator

Sorry, I am too used to Linux. I believe the equivalent btool command on windows is:

$splunkhome$/bin/splunk.exe btool web list settings | FINDSTR max_upload

 

0 Karma

dbcase
Motivator

I've had the same problem. You can use the Linux SPLIT command to break the file up into smaller parts

http://askubuntu.com/questions/54579/how-to-split-larger-files-into-smaller-parts

0 Karma

ChrisG
Splunk Employee
Splunk Employee

Yes, both the trial and free licenses have an indexing limit of 500MB a day. For file upload on any license, the maximum file size is 500 MB, as the UI indicates.

0 Karma

somesoni2
Revered Legend

The 500MB limit is for uploading file from Splunk Web, regardless of the license type.

http://docs.splunk.com/Documentation/Splunk/6.4.3/Data/Uploaddata

mwdbhyat
Builder

Thanks - Is there a way around this without using the Web, not splitting the file ?

0 Karma

dbcase
Motivator

I don't think so but you could try using the universal forwarder instead of uploading the file

0 Karma

dbcase
Motivator

Is it possible to zip the file so it is less than 500MB?

https://answers.splunk.com/answers/279/does-splunk-index-gzip-files.html

mwdbhyat
Builder
0 Karma

dbcase
Motivator

Ah good to know, haven't used that before

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...