Wash tomatoes and peppers. Remove stems and cores; seed peppers. Peel onions. Cut vegetables into pieces suitable for blending.
Blend vegetables in batches until smooth. Combine in a large saucepan and bring to a boil; boil gently until the volume is reduced by about half.
Place allspice, cloves, and cinnamon in a spice bag. Add the spice bag, vinegar, sugar, salt, dry mustard, and ground red pepper to the tomato mixture.
Boil gently, stirring frequently, until the ketchup reaches the desired consistency. Remove the spice bag.
Fill hot pint jars, leaving 1/8-inch headspace.
Process pints 15 minutes at 0–1,000 ft, 20 minutes at 1,001–6,000 ft, or 25 minutes above 6,000 ft.