Are you saying you have the same file in two places and Splunk is indexing it from both places? If so, that is normal. Splunk is merely doing what it was asked to do. It doesn't know the same data is already indexed. The solution is to not put the same data in two places that are monitored by Splunk.
--- If this reply helps you, an upvote would be appreciated.