I have 27 000 logs file and need to parse them in one time in GoAccess. every time i run this command
goaccess /home/goaccess/part/2/*.log --log-format='%^ %dT%t.%^ %v %h:%^ %^ %^ %T %^ %s %^ %^ %b "%r" "%u" %k %K %^' -o /var/www/html/index.html --date-format=%Y-%m-%d --time-format=%T
it says
bash: /usr/bin/find: Argument list too long
i have tried all the things suggested by chatgpt and bard still same problem.
Try this instead:
This should batch the goaccess commands into groups that fit under the arg list restriction amount, using xargs (which was specifically designed for this type of issue), and allow an arbitrary number of files to be processed. See man xargs for more details and examples.