Passing to output index field but getting [@metadata][index]

I think what you are looking for in current versions of Beats is event.module.