Splunk破解500M限制

2022-05-24 18:15:59 浏览数 (1)

破解splunk导入数据500M限制

cd $ SPLUNK_HOME

vim lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/licensing.py

if action == 'add' and not pool_object.quota_bytes['byte_value']:

quota_value = max(0, int(unallocated_bytes / 2**20))

quota_value = quota_value * 1024 * 1024

else:

quota_value = (pool_object.quota_bytes['byte_value'] or 0) / 2**20

quota_value = quota_value * 1024 * 1024

#quota_units = 'MB'

quota_units = 'TB'

mv lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/licensing.pyo /root

splunk restart

更改许可证

改为:Free许可证组

Web方式(使用浏览器访问http://plunk_server_ip:8000)

设置》授权》更改许可证组

选 Free 许可证

重启splunk

0 人点赞