Hello German,
For this correlation, you need to refer to the successful login too. In your rule 30002, your if_sid was referencing both failed logins, the parent and child. you need to match the failed authentication after the specifid period along with the successful authentication. Please see correction below. I have tried this and it works.
<group name="custom-test,">
<rule id="300001" level="15" frequency="10" timeframe="600">
<if_matched_sid>300000</if_matched_sid>
<same_user />
<same_srcip />
<description>user $(dstuser) has more than 10 failed login attempts</description>
</rule>
</group>
<group name="custom-test2,">
<rule id="300002" level="12">
<if_sid>XXXXXX</if_sid> <!-- rule to detect successful login-->
<if_matched_sid>300001</if_matched_sid>
<same_srcip />
<description>Successful connection from IP $(srcip) after failed attempts</description>
</rule>
</group>
Please let me know what you find.