elastic/elasticsearch SLOC report
As of 2026-08-07 (commit 36459f7a4c12), elastic/elasticsearch contains 3,922,873 total lines: 2,831,372 code, 640,931 comments, 450,570 blank, across 21,543 files in 25 languages (top: Java 96.1%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving elastic/elasticsearch to commit 36459f7a4c12, 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.
Repository size insights
This is a very large codebase by counted code lines. Code represents 72.2% of all lines, comments represent 16.3%, and the repository averages 131 code lines per file. Java accounts for 96.1% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|
| Java | 19136 | 3675118 | 2722357 | 530731 | 422030 |
| JSON | 948 | 64712 | 64701 | 0 | 11 |
| YAML | 221 | 12935 | 10080 | 2072 | 783 |
| Groovy | 46 | 9347 | 7598 | 631 | 1118 |
| XML | 12 | 7258 | 7097 | 106 | 55 |
| C++ | 28 | 8929 | 6828 | 1029 | 1072 |
| Rust | 13 | 4662 | 3980 | 284 | 398 |
| TOML | 13 | 5252 | 3709 | 1011 | 532 |
| AsciiDoc | 17 | 1729 | 1276 | 21 | 432 |
| Shell | 17 | 1800 | 1103 | 460 | 237 |
| Batch | 24 | 646 | 507 | 2 | 137 |
| C Header | 6 | 761 | 493 | 178 | 90 |
Top language (Java 96.1%). Generated at 2026-08-07T00:00:30.475177052+00:00.
Report FAQ
How many lines of code does elastic/elasticsearch have?
elastic/elasticsearch has 3,922,873 total lines, including 2,831,372 code lines, 640,931 comment lines, and 450,570 blank lines.
How was the elastic/elasticsearch line count measured?
OctoCounts resolved the public GitHub repository to commit 36459f7a4c12, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
What commit was counted for elastic/elasticsearch?
This OctoCounts report was generated from main at commit 36459f7a4c12 on 2026-08-07T00:00:30.475177052+00:00.