scan thru all build log in TeamCity

I am running a TeamCity system , and I need to scan thru all available build logs on that system.
Please recommend ways to do it .
Thanks in advance.

Dan

5 comments
Comment actions Permalink

As mentioned here (http://confluence.jetbrains.com/display/TCD8/Search), you can search in build logs:

1. Add "tc.search.indexBuildLog=true" to \TeamCity\config\internal.properties
2. Reset search cache (Diagnostics tab) or delete files from \TeamCity\system\caches\search
After re-indexing you should be able use new search field "buildLog"
For my ~4000 builds with 1.1 GB of detailed logs, search index grew roughly ten times from 78 MB to 700 MB.
In the end, it turned out to be quite useless. I would really like to search for individual tests, rather than for builds.

0
Comment actions Permalink

I just tried Sergey's steps in 8.1.5 with "reset caches" method. First of all, could that Confluence page be modified in the docs for each TC release that supports "buildLog" case-sensitive keyword? Until I found this post, I had no idea what to use to search within build logs.

Second, I couldn't find ANYTHING in the logs this way. However, if I stopped the server, manually deleted the files in caches\search folder and restarted, the search worked as expected. It seems that "reset caches" does not delete all files in that folder, and that is required for the re-indexing to work. Could you please update the instructions in the docs or fix the apparent bug with reset caches functionality?

0
Comment actions Permalink

I updated documentation. Thanks for noticing.

0
Comment actions Permalink

Sergey,

What I meant is this:

1. The keyword "buildLog" does not appear anywhere on that page. If I read that page, I have no idea how to filter the search only by results from the build log. It might be best to put that in the table with a link to the Search by Build Log section via an anchor.
2. The keyword "buildLog" is case-sensitive, not the search terms. For example, "buildLog: placeholder" and "buildLog: Placeholder" find the same results, but "buildlog: placeholder" and "buildlog: Placeholder" find nothing. Thus, you should mention that "buildLog" must be written exactly with that casing.
3. Since the build log search funcitonality is present in versions prior to version 9, could you please update the same page with the same info for all versions with this functionality?

Could you please verify your statement "Please note that you might have to restart the server to let it pick up the updated search cache" with Dmitry Treskunov, who just fixed the bug for 9.0.1? It might be accurate for versions prior to 9, but restart might not be needed anymore after his fix.

0
Comment actions Permalink

I've updated the documentation as you suggested. Thank you!

0

Please sign in to leave a comment.