The following docs should how to override sourcetype: http://docs.splunk.com/Documentation/Splunk/6.2.5/Data/Advancedsourcetypeoverrides
A similar method is used to override index.
My question is, how do I override sourcetype AND index at parsing time?