Its better that you have her seen by a Pediatrician
and get her examined.
Sore legs and tummy with a rash
can well be due to a virus. In such a case just symptomatic treatment will be enough.
Or the rash might be due to allergy
which might need to be treated with antihistamines.
A visit to your Pediatrician will be of help.