Using Logstash to correct timestamps

Some devices, particularly network devices, apparently don't have a battery clock and start logging before they sync to a time server. We have some that log to linux epoch 0 (1/1/1970), others to some 1980 date, some to just some randomly wrong date (maybe they have a battery clock that has drifted).