Greetings from Wazuh,
I understand the problem is only rule "100252", with level "4", is triggered, but not the one with level "3". This could mean the alert level threshold has been defined as 4. To check and change this check the following documentation,
https://documentation.wazuh.com/current/user-manual/manager/alert-threshold.html. The alert level threshold is 3 by default, so if the attribute "log_alert_level" is not defined the problem is probably elsewhere. I understand the mistake in the field "dstip" comes from copying the rule, but there is an extra dot in the IP.
If the "log_alert_level" is not defined the problem may be that analysisd only triggers the first rule or the rule with the highest level if both come from the same rule. If so, you could add an additional rule, daughter of the two previous ones and with both conditions.
<rule id="100251" level="3">
<if_sid>100251, 100252</if_sid>
<srcip>192.168.1.22</srcip>
<dstip>192.168.1.34</dstip>
<description>Source IP and Destination IP found</description>
</rule>