I have a local folder containing source code and I want to search the files in real time using Elasticsearch. Specifically, I want to use filebeat to monitor files in the folder and send the lines of the files to Elasticsearch.
However, I can't find a pre-made filebeat module that will send the entire line of a text file to Elasticsearch. All of the filebeat modules do some sort of parsing on the line. This makes me think that perhaps I am trying to use the wrong tool for the job.
Is filebeat the best way to search ~10k text files with Elasticsearch or is there a better solution? The advantage of using Elasticsearch over something like ripgrep is that I could enrich the data to include attributes like if the file is code, documentation, or a test.