Initialize counter in logstash and replace the '%{[message][0]}'?

If there are a limited number of formats you may be able to count the number of columns and use that to determine which csv filter to use.