The perturbation produced in the atmosphere/ionosphere associated with earthquake precursors during seismic activity of two major earthquakes which occurred on (1) 24 June 2019 in Indonesia (M = 7.3) and (2) on 19 August 2018 at Ndoi, Fiji (M = 8.2), are studied. Based on statistical analysis of total electron content (TEC) data, the presence of ionospheric perturbations 5 days before and after the main shock are found, which depends on the distance as well as direction of observation point from the epicentre. In general, ionospheric perturbations after the EQ at all the stations are found larger than that before the EQ. Probable mechanisms behind these perturbations associated with EQ are also being discussed. The ionospheric perturbations are observed at stations which are at larger distances from the epicentre, but not observed over other stations in different directions which are comparatively closer to the epicentre. These results suggest that seismic induced ionospheric anomaly is not isotropic in nature. Ozone data from three satellites: AIRS, OMI, and TOMS-like and MERRA-2 model are also analyzed 5 days before the EQ day and compared to the monthly average level. A strong link between anomalous variation in ionospheric TEC and atmospheric ozone data prior to both the EQs is noticed.