Revenue and Remaining Performance Obligations - Schedule of Revenue by Category (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Jan. 31, 2022
Jan. 31, 2021
Jan. 31, 2022
Jan. 31, 2021
Disaggregation of Revenue [Line Items]        
Amount $ 223,944 $ 157,115 $ 623,019 $ 430,879
Revenue | Product        
Disaggregation of Revenue [Line Items]        
% of Total Revenue 100.00% 100.00% 100.00% 100.00%
Total subscription        
Disaggregation of Revenue [Line Items]        
Amount $ 209,614 $ 147,249 $ 577,056 $ 402,800
Total subscription | Revenue | Product        
Disaggregation of Revenue [Line Items]        
% of Total Revenue 94.00% 94.00% 93.00% 93.00%
Elastic Cloud        
Disaggregation of Revenue [Line Items]        
Amount $ 80,402 $ 44,929 $ 210,963 $ 114,984
Elastic Cloud | Revenue | Product        
Disaggregation of Revenue [Line Items]        
% of Total Revenue 36.00% 29.00% 34.00% 27.00%
Other subscription        
Disaggregation of Revenue [Line Items]        
Amount $ 129,212 $ 102,320 $ 366,093 $ 287,816
Other subscription | Revenue | Product        
Disaggregation of Revenue [Line Items]        
% of Total Revenue 58.00% 65.00% 59.00% 66.00%
Professional services        
Disaggregation of Revenue [Line Items]        
Amount $ 14,330 $ 9,866 $ 45,963 $ 28,079
Professional services | Revenue | Product        
Disaggregation of Revenue [Line Items]        
% of Total Revenue 6.00% 6.00% 7.00% 7.00%