Hi,
Welcome to this forum!
According to your trace this error is not from LogStash but from your local Ruby installation and the interactive shell, right? Did you install docsplit using gem install docsplit?
Also, please be aware that LogStash brings its own Ruby version which might be a different version and has its own gem store.
Best regards
Wolfram