So for anyone running into this issue in the future.
What actually was happening that the link in the documentation for code for the Lambda function is actually redirecting to the code that first needs to be built through the following command:
./gradlew clean build
You can either build it yourself ( you would need JRE and JDK both ) or use the one of the previous releases for fetching the already built lambda function code here
Further, if you run into this issue later down the line, please ensure the following to start receiving logs into the proper ElasticSearch Index:
Create an index by the name of cloudflare-test through the following request
curl -X PUT "localhost:9200/cloudflare-test?pretty"
Download the index templates from the same release i.e.
Issue the following command through terminal from your own computer:
After this, you should hopefully see the following output:
Installing ingest pipeline to https://_<YOUR DEPLOYMENT ENDPOINT>_ for daily indices {"acknowledged":true} Installing ingest pipeline to https://_<YOUR DEPLOYMENT ENDPOINT>_ for weekly indices {"acknowledged":true} Installing index template to https://_<YOUR DEPLOYMENT ENDPOINT>_ {"acknowledged":true}
After which the logs should start appearing on Kibana !