# elastic/elasticsearch SLOC report

> elastic/elasticsearch: 3,368,978 code lines at commit 90c621769707, counted with tokei-15.0.0 on 2026-11-24. Saved result 08ae96432c28b9e41768b472b2a58f019af0e1c3365114e7b0fbd5ae2bac899b.

Source: [elastic/elasticsearch on GitHub](https://github.com/elastic/elasticsearch) · counted commit [90c621769707](https://github.com/elastic/elasticsearch/tree/90c621769707bf8dea3d242f8a3e6bde25d4b9cb)

elastic/elasticsearch has 3,368,978 source lines of code out of 4,688,278 total lines across 23,251 files, counted with tokei from the main ref at commit 90c621769707 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving elastic/elasticsearch to commit 90c621769707, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

elastic/elasticsearch: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 71.9% of all lines, comments represent 17.2%, and the repository averages 145 code lines per file. Java accounts for 91.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Java | 20,731 | 4,183,268 | 3,083,058 | 633,936 | 466,274 |
| C Header | 8 | 188,573 | 127,831 | 45,981 | 14,761 |
| JSON | 1,022 | 67,176 | 67,165 | 0 | 11 |
| C++ | 37 | 76,069 | 52,870 | 16,363 | 6,836 |
| Groovy | 69 | 14,733 | 11,629 | 1,323 | 1,781 |
| YAML | 237 | 13,894 | 10,986 | 2,106 | 802 |
| XML | 12 | 7,125 | 6,957 | 113 | 55 |
| TOML | 11 | 5,206 | 3,674 | 1,006 | 526 |
| AsciiDoc | 17 | 1,749 | 1,291 | 21 | 437 |
| Shell | 14 | 1,934 | 1,215 | 490 | 229 |
| Dockerfile | 4 | 762 | 528 | 143 | 91 |
| Batch | 24 | 686 | 525 | 22 | 139 |
| SQL | 13 | 867 | 300 | 561 | 6 |
| Makefile | 2 | 455 | 269 | 109 | 77 |
| BASH | 27 | 505 | 266 | 139 | 100 |
| Python | 2 | 380 | 265 | 49 | 66 |
| Forge Config | 3 | 75 | 66 | 0 | 9 |
| Protocol Buffers | 2 | 91 | 37 | 40 | 14 |
| JavaScript | 2 | 38 | 31 | 1 | 6 |
| FreeMarker | 3 | 7 | 7 | 0 | 0 |
| Mustache | 1 | 5 | 5 | 0 | 0 |
| SVG | 1 | 4 | 3 | 1 | 0 |
| Markdown | 69 | 7,395 | 0 | 5,530 | 1,865 |
| Plain Text | 940 | 117,281 | 0 | 96,350 | 20,931 |

Top language: Java 91.5%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/elastic/elasticsearch/commit/90c621769707bf8dea3d242f8a3e6bde25d4b9cb?reportId=08ae96432c28b9e41768b472b2a58f019af0e1c3365114e7b0fbd5ae2bac899b&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/elastic/elasticsearch/commit/90c621769707bf8dea3d242f8a3e6bde25d4b9cb?reportId=08ae96432c28b9e41768b472b2a58f019af0e1c3365114e7b0fbd5ae2bac899b&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does elastic/elasticsearch have?

elastic/elasticsearch has 3,368,978 lines of code, plus 804,284 comment lines and 515,016 blank lines, for 4,688,278 total lines at commit 90c621769707 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the elastic/elasticsearch line count measured?

OctoCounts resolved the public GitHub repository to commit 90c621769707, 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 90c621769707 on November 24, 2026.

## Similar repository reports

- [metasfresh/metasfresh](https://octocounts.com/github/metasfresh/metasfresh) — Java, 3,505,889 code lines
- [Ettacent/NimarkoGram](https://octocounts.com/github/Ettacent/NimarkoGram) — Java, 2,903,618 code lines
- [exteraless/exteraless](https://octocounts.com/github/exteraless/exteraless) — Java, 3,951,205 code lines
- [exteraSquad/exteraGram](https://octocounts.com/github/exteraSquad/exteraGram) — Java, 2,790,261 code lines
- [risin42/NagramX](https://octocounts.com/github/risin42/NagramX) — Java, 4,212,256 code lines
- [prsdrty-unofficial/exteraOSS](https://octocounts.com/github/prsdrty-unofficial/exteraOSS) — Java, 2,643,868 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [Elasticsearch vs OpenSearch](https://octocounts.com/compare/elasticsearch-vs-opensearch)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [Kubernetes vs Docker Compose](https://octocounts.com/compare/kubernetes-vs-docker-compose)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
