FAQ: How do I trim the length of a field string?
To trim a field to show only the first 50 characters of the field CommandLine:
#event_simpleName=ProcessRollup2
| format("%,.50s", field=CommandLine, as=shortCmdLine)
| select([shortCmdLine, CommandLine])