Repository navigation
Description
@karenzone, @lcawl, and I met to discuss Logstash/V3 today. Here are some notes and recommendations.
Summary
Logstash documentation consists of two main content sets:
- Logstash Reference (LSR): Contains reference content from the logstash repo and plugin reference content from the logstash-docs repo.
- Logstash Versioned Plugin Reference (VPR): Entirely sourced from the logstash-docs repo.
The logstash-docs repo acts as a middle-ground repository that houses all built AsciiDoc documentation for Logstash plugins.
The problem
The current automation for Logstash documentation is error-prone and time-consuming to manage. Rewriting this automation is necessary, but neither docs-eng nor logstash-eng has the resources to accomplish this by March 25. A practical plan is needed to determine what can realistically be done by this deadline.
Options
1. Leave all Logstash docs behind
We would not migrate Logstash docs to V3 at this time. Instead, we would connect the Logstash AsciiDoc content with the V3 experience and modify the legacy AsciiDoc tooling to allow this functionality. This option avoids additional V3 engineering work but requires tooling on the unknown Asciidoc build side. It is also likely to result in a poor user experience.
I'm really worried about this option because I don't know what is required on the Asciidoc side. Removing all of the other main and master docs will really bork up the Asciidoc build. There be 🐉's and I'm afraid this will turn into to way more work than we think.
2. Treat LSR and VPR as separate content sets (migrate some)
This approach would migrate the LSR to V3 without the plugin content and leave the VPR in AsciiDoc. While this simplifies the migration for part of the Logstash docs, it significantly degrades the user experience since Logstash is not functional without its plugins.
I see no win with this option. It's a poor user experience and combines all of the cons from both options 1 and 3.
3. Migrate both content sets repeatedly with adoc-to-md
- Maintain the existing automation and layer the adoc-to-md migration tool on top of it.
- Split the LSR into two
toc.ymlfiles:- MD reference content (which will live in the logstash repo).
- MD plugin docs (which will live in the logstash-docs repo).
- Keep the VPR entirely in the logstash-docs repo with its own
toc.yml. - Use GitHub Actions to automate the
adoc-to-mdconversion script after each commit to the logstash-docs repo. - Source all three toc.yml files with the assembler
Differs a complete automation rewrite, offers a good user experience, and it might actually not be that difficult to implement.
I think it's worth further exploring option 3
Related
- Further musings, research, and discussion on a possible long term plan are in https://github.com/elastic/platform-docs-team/issues/409.
- Previous attempt at updating versioning in the VPR: Support stack versions in versioned plugin docs. docs-tools#70
Activity
karenzone commentedon Jan 29, 2025
Thanks for writing this up, @bmorelli25. I'd like to work with you to clarify some info in your Summary and Problem statement sections. I'm convinced that Option 3 is the way to go.
bmorelli25 commentedon Feb 3, 2025
Meeting with @karenzone 2/3/25
I met with @karenzone today to discuss the Logstash/V3 migration, and we agree that option three is likely attainable within the next few weeks. Option three means that we will maintain the existing logstash-docs automation and layer the adoc-to-md migration tool on top of it.
We’re planning to sync with @siamakp-elastic and @lcawl to ensure we're aligned and can move forward smoothly. In the meantime, there are some tasks that Karen and I will get started on.
Logstash Versioned Plugin Reference (VPR)
The VPR docs currently live in the versioned_plugin_docs branch of the elastic/logstash-docs repo. This content is updated automatically, and any new files/dirs are wiped when this happens.
Example
I’ve migrated a point-in-time snapshot of the VPR docs and published them here.
These docs can be built using docs-builder. To build them, clone the docs-builder repo and run:
Short term to-dos:
toc.ymlthatadoc-to-mdoutputs. @bmorelli25 to scope and sync with SiamakLogstash Reference (LSR)
The LSR docs consist of two parts:
index.asciidocfile in the logstash repo (view here).@bmorelli25 is testing building this content from a new index.asciidoc file in the logstash-docs repo. This is causing quite a few errors, but I’ll continue investigating this in the following branch: logstash-docs.
To-dos:
index.asciidocfile and fix all errors when trying to build from this repo.Current plugin docs workflow
Right now, Karen's workflow with the Logstash plugin docs (both VPR and LSR Plugins) is:
mainbranch for LSR Pluginsversioned_plugin_docsbranch for VPRProposed plugin docs workflow
The goal of the above tasks is to get to the following workflow:
mainbranch for LSR Pluginsversioned_plugin_docsbranch for VPRVisualized
graph LR subgraph "Automation Process" A[Automation creates PR] --> B{Which Branch?} B -->|main| C[LSR Plugins] B -->|versioned_plugin_docs| D[VPR] end subgraph "Review Process" C --> E[Karen Reviews] D --> E E --> F{Builds Successfully?} F -->|No| G[Fix Issues] G --> E F -->|Yes| H[Merge PR] end subgraph "Post-Merge Process" H --> I[Post-commit Action] I --> J[Build with docs-builder] J --> K{Build Successful?} K -->|No| L[Fix Build] L --> J K -->|Yes| M[Commit to logstash-md repo] end subgraph "Deployment" M --> N[V3 Assembler] N --> O[Deploy to Docs Site] endkarenzone commentedon Feb 3, 2025
@robbavey and @jsvd: FYI. Early phases don't require Logstash dev resources. Looping you in here and for future discussions.
karenzone commentedon Feb 3, 2025
@bmorelli25: To clarify, during Doc Freeze and migration, we can still work on plugin docs, and merge the content from plugin docgen to these branches:
Please correct me if I'm wrong.
bmorelli25 commentedon Feb 3, 2025
Yes. Unlike other repos, you can also merge to
mainin the logstash-docs repo.bmorelli25 commentedon Feb 4, 2025
Talked with @reakaleek. Notes:
adoc-to-mdimage to a public endpoint. However, because the plan would be to run this as a post-commit action, we don't need to. Building directly in the action will only add ~15 seconds to build times.Overall, it sounds very doable.
lcawl commentedon Feb 6, 2025
Hi! Not sure if these are the existing syntax errors mentioned in earlier comments, but while addressing errors in the migrated reference content, the codeblock in the JDBC static filter plugin generated lots of this error: " Both inline and classic callouts are not supported".
It's due to the
# run loaders every 2 hoursin the codeblock, which I've fixed for now in the output here: https://github.com/elastic/asciidocalypse/pull/10Ideally it would be fixed in the source files so it doesn't reappear when the content is re-generated. If you want me to create an issue in the logstash or logstash-docs repo to track that request, just lmk!
karenzone commentedon Feb 6, 2025
Thanks for this cleanup work, @lcawl.
karenzone commentedon Feb 10, 2025
In that case, let's talk about removing the asciidoc warning from the
logstash-docsrepo so that people can use my plugin docs validation hack.elastic/logstash-docs#1803 (comment)
reakaleek commentedon Mar 10, 2025
Help:
I cannot run adoc-to-md. I followed the steps in https://github.com/elastic/adoc-to-md?tab=readme-ov-file#converting-asciidoc-content-to-markdown.
cd src/docker bash create_image.shAnd I get this error:
bmorelli25 commentedon Jun 16, 2025
@colleenmcginnis is working on migrating our Logstash Plugin docs from HTML to MD instead of from asciidoc to MD. She has a working prototype and her and @karenzone are finalizing ownership details.
As her PR fixes our short-term needs, I'm going to move this from blocked to backlog and we'll revisit a longer-term solution when the team has more availability.
[-]Plan for Logstash documentation migration[/-][+]Long term for Logstash documentation[/+]bmorelli25 commentedon Dec 2, 2025
Related bug with current implementation: #2046
cotti commentedon Jun 3, 2026