I don't want to use filebeat or logstash. I have installed only Elasticsearch and I want to store log records in it and then index them. Is it possible.
Yes, it's possible, you can use any client library of your choosing and then hit the Index API endpoint or the Bulk API endpoint to index your data.