As of 2026-09-08 (commit 10a8dcf0fb4e), elastic/elasticsearch contains 2,723,905 total lines: 1,984,402 code, 414,457 comments, 325,046 blank, across 16,284 files in 24 languages (top: Java 96.0%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving elastic/elasticsearch to commit 10a8dcf0fb4e, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
This is a very large codebase by counted code lines. Code represents 72.9% of all lines, comments represent 15.2%, and the repository averages 122 code lines per file. Java accounts for 96.0% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Java | 14467 | 2542360 | 1905439 | 331925 | 304996 |
| JSON | 763 | 52107 | 52093 | 0 | 14 |
| YAML | 193 | 11600 | 8919 | 1963 | 718 |
| XML | 12 | 5679 | 5517 | 107 | 55 |
| Groovy | 31 | 5235 | 4417 | 301 | 517 |
| TOML | 11 | 5177 | 3652 | 1001 | 524 |
| AsciiDoc | 17 | 1750 | 1311 | 21 | 418 |
| Shell | 12 | 1422 | 810 | 440 | 172 |
| Batch | 25 | 738 | 577 | 2 | 159 |
| Python | 3 | 580 | 423 | 68 | 89 |
| SQL | 13 | 867 | 300 | 561 | 6 |
| BASH | 27 | 480 | 249 | 135 | 96 |
Top language (Java 96.0%). Generated at 2026-09-08T07:14:23.372407982+00:00.
elastic/elasticsearch has 2,723,905 total lines, including 1,984,402 code lines, 414,457 comment lines, and 325,046 blank lines.
OctoCounts resolved the public GitHub repository to commit 10a8dcf0fb4e, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from 10a8dcf0fb4e5c3757e26dfc777dc84dfc25fae3 at commit 10a8dcf0fb4e on 2026-09-08T07:14:23.372407982+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: