Skip to main content

Finding your longest running queries via the command line


1 comment

  • Sean O'Connor

    If it helps someone, here is another similar approach:

    egrep "QTime=[0-9]{4,}" solr.log | egrep -v "distrib=false" | egrep "(&q=[^&]+|QTime=.*|.istrib[^&]*)" -o

    This first looks for "long" queries (1000 ms or more -- 4 digits or more for ms time)

    Then filters out (-v means invert, or filter out) distrib false (remove -v, or similarly change the filter as you like).

    Highlight the &q=... up to the next ampersand

    highlight the distrib string

    -o should then return the matched strings.



Please sign in to leave a comment.

Powered by Zendesk