Is there way to have some custom script running on beat server which will generate some data/logs and that we can ship to elasticsearch or logstash?
filebeat tails any files. If your script write to some log file being configured in filebeat, filebeat will ship it.