Search log is not cleaning up!


(Yoginth) #1

Search log is not cleaning up! I even triggered it in Sidekiq scheduler but still search log is there.


(Régis Hanol) #2

What do you mean it’s not cleaning up? I don’t think it should…


(Yoginth) #3

How to clean the search logs?


(Régis Hanol) #4

There’s no way unless you remove the records from the database.

Why do you want to clean the search logs?


(Yoginth) #5

Got millions of searches


(Régis Hanol) #6

So? I’m not sure I see a problem here.


(Yoginth) #7

But in sidekiq scheduler there is a term called clearsearchlogs


(Régis Hanol) #8

Right, that job is used to trim the search logs. It’s controlled by the “search query log max size” site setting (which defaults to 1M).