elastic/elasticsearch has 3,254,671 source lines of code out of 4,529,410 total lines across 22,672 files, counted from the main ref at commit 5a62eae42c20 by the OctoCounts tokei engine on 2026-10-24. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-24 (commit 5a62eae42c20), elastic/elasticsearch contains 4,529,410 total lines: 3,254,671 code, 774,151 comments, 500,588 blank, across 22,672 files in 24 languages (top: Java 91.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving elastic/elasticsearch to commit 5a62eae42c20, 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 71.9% of all lines, comments represent 17.1%, and the repository averages 144 code lines per file. Java accounts for 91.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Java | 20190 | 4030002 | 2972788 | 604895 | 452319 |
| C Header | 8 | 188567 | 127826 | 45972 | 14769 |
| JSON | 999 | 66567 | 66556 | 0 | 11 |
| C++ | 34 | 74512 | 51682 | 16119 | 6711 |
| YAML | 236 | 13455 | 10565 | 2092 | 798 |
| Groovy | 62 | 12785 | 10057 | 1160 | 1568 |
| XML | 12 | 6998 | 6837 | 106 | 55 |
| TOML | 11 | 5205 | 3673 | 1006 | 526 |
| AsciiDoc | 17 | 1734 | 1280 | 21 | 433 |
| Shell | 13 | 1876 | 1151 | 505 | 220 |
| Batch | 24 | 656 | 516 | 2 | 138 |
| Dockerfile | 5 | 711 | 487 | 130 | 94 |
Top language (Java 91.3%). Generated at .
elastic/elasticsearch has 4,529,410 total lines, including 3,254,671 code lines, 774,151 comment lines, and 500,588 blank lines.
OctoCounts resolved the public GitHub repository to commit 5a62eae42c20, 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 main at commit 5a62eae42c20 on 2026-10-24T11:54:43.057913247+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for elastic/elasticsearch on this page — 3,254,671 code lines across 12 languages, counted by tokei.