Hi,
Not sure if I got all your cases, can you try this?
rex field=line "([^,\?]*(?:\?.[^,\?]*)*,){11}(?<field1>[^,\?]*(?:\?.[^,\?]*)*),"
I tried it like this to test it out:
| makeresults | eval line="1,2,3?,? ,4,5,6,7,8,9,10,11,this is ?,interesting,x,y,z" | rex field=line "([^,\?]*(?:\?.[^,\?]*)*,){11}(?<field1>[^,\?]*(?:\?.[^,\?]*)*),"
Don't ask me how I got there. I once had a similar problem with escaped \" in logs that had fields delimited by actual ".
... View more