Abstract: In a particular embodiment, a method is disclosed for determining a source of a fluid downhole. The method includes deploying an ion selective sensor downhole, exposing the fluid to the ion selective sensor downhole, measuring an ion concentration at different places within the fluid and using that information to identify a source of the fluid from the ion concentration profile. In another particular embodiment, an apparatus is disclosed for estimating a source of a fluid. The apparatus contains a tool deployed in a well bore, an ion selective sensor in the tool, a processor in communication with the ion selective sensor and a memory for storing an output from the ion selective sensor.