<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2023 Workiva-->
<!--r:38659841-75a9-496f-8aa5-cf4d86189556,g:aedc1850-d6d2-4ab8-8636-feca44608a19-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://www.klx.com/role/CondensedConsolidatedStatementsofStockholdersEquityDeficit" xlink:type="simple" xlink:href="klxe-20230930.xsd#CondensedConsolidatedStatementsofStockholdersEquityDeficit"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/CondensedConsolidatedStatementsofStockholdersEquityDeficit" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_26430034-817c-4bbd-a46c-b048e8214acf" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdateExtensibleList_4f78012d-247c-4a79-9107-cd9176dc433e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccountingStandardsUpdateExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_26430034-817c-4bbd-a46c-b048e8214acf" xlink:to="loc_us-gaap_AccountingStandardsUpdateExtensibleList_4f78012d-247c-4a79-9107-cd9176dc433e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_4e73193b-6ee3-412a-af32-c5c03f0b4a93" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_26430034-817c-4bbd-a46c-b048e8214acf" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_4e73193b-6ee3-412a-af32-c5c03f0b4a93" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_178e50fa-1a3f-4eed-a0d3-d3dd9eb939ad" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_4e73193b-6ee3-412a-af32-c5c03f0b4a93" xlink:to="loc_us-gaap_CommonStockSharesIssued_178e50fa-1a3f-4eed-a0d3-d3dd9eb939ad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_0a110481-d302-47a7-bf23-f166fe003561" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_4e73193b-6ee3-412a-af32-c5c03f0b4a93" xlink:to="loc_us-gaap_StockholdersEquity_0a110481-d302-47a7-bf23-f166fe003561" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_6510e059-01c4-475c-8f1a-e63700738b96" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_4e73193b-6ee3-412a-af32-c5c03f0b4a93" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_6510e059-01c4-475c-8f1a-e63700738b96" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures_0ab3f2d3-68d1-450d-879b-cfe3b6e96b88" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_4e73193b-6ee3-412a-af32-c5c03f0b4a93" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures_0ab3f2d3-68d1-450d-879b-cfe3b6e96b88" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_ea174346-9389-43dc-8d0b-aa94e0993ddb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_4e73193b-6ee3-412a-af32-c5c03f0b4a93" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_ea174346-9389-43dc-8d0b-aa94e0993ddb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_48178c3e-c2f0-4ae2-8940-996e18a49208" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_4e73193b-6ee3-412a-af32-c5c03f0b4a93" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_48178c3e-c2f0-4ae2-8940-996e18a49208" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_b30c71eb-77fe-4beb-870a-1263ccf3b88d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_4e73193b-6ee3-412a-af32-c5c03f0b4a93" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_b30c71eb-77fe-4beb-870a-1263ccf3b88d" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_52bb0ff6-ebc7-47f4-aae3-34081c09c41a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_4e73193b-6ee3-412a-af32-c5c03f0b4a93" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_52bb0ff6-ebc7-47f4-aae3-34081c09c41a" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_5efdee64-a5db-441f-9a96-bed97072f052" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_4e73193b-6ee3-412a-af32-c5c03f0b4a93" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_5efdee64-a5db-441f-9a96-bed97072f052" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_99a0ff33-ec76-4fc7-9066-d33d2fdfdb7f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_4e73193b-6ee3-412a-af32-c5c03f0b4a93" xlink:to="loc_us-gaap_NetIncomeLoss_99a0ff33-ec76-4fc7-9066-d33d2fdfdb7f" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_97dc2761-2530-4813-b9a0-e15201ec872d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_66f97ca3-19d5-49b8-9cc0-fc9c1dac83e2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_4b0eefae-c6e6-4986-bf68-12e9a36188f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_26430034-817c-4bbd-a46c-b048e8214acf" xlink:to="loc_us-gaap_StatementTable_4b0eefae-c6e6-4986-bf68-12e9a36188f0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_3a5f14ff-c093-404e-a01c-01cc94c336e3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_4b0eefae-c6e6-4986-bf68-12e9a36188f0" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_3a5f14ff-c093-404e-a01c-01cc94c336e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_3a5f14ff-c093-404e-a01c-01cc94c336e3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_3a5f14ff-c093-404e-a01c-01cc94c336e3" xlink:to="loc_us-gaap_EquityComponentDomain_3a5f14ff-c093-404e-a01c-01cc94c336e3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_4e3db284-2810-4c67-ae75-c7d8649a4e18" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_3a5f14ff-c093-404e-a01c-01cc94c336e3" xlink:to="loc_us-gaap_EquityComponentDomain_4e3db284-2810-4c67-ae75-c7d8649a4e18" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_0712e46e-7808-4936-ba9a-7cb63b629800" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4e3db284-2810-4c67-ae75-c7d8649a4e18" xlink:to="loc_us-gaap_CommonStockMember_0712e46e-7808-4936-ba9a-7cb63b629800" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_13581d04-d7fa-47bb-8cbf-b7d6f57b8a45" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4e3db284-2810-4c67-ae75-c7d8649a4e18" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_13581d04-d7fa-47bb-8cbf-b7d6f57b8a45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonMember_dce0d74e-4c7a-4102-8846-eb48a99cda20" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_TreasuryStockCommonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4e3db284-2810-4c67-ae75-c7d8649a4e18" xlink:to="loc_us-gaap_TreasuryStockCommonMember_dce0d74e-4c7a-4102-8846-eb48a99cda20" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_302f1a57-82bb-49ff-9cb4-5f8650dcf161" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_4e3db284-2810-4c67-ae75-c7d8649a4e18" xlink:to="loc_us-gaap_RetainedEarningsMember_302f1a57-82bb-49ff-9cb4-5f8650dcf161" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_b06dcc83-dd00-4782-bd57-965138fdfac6" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_4b0eefae-c6e6-4986-bf68-12e9a36188f0" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_b06dcc83-dd00-4782-bd57-965138fdfac6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_b06dcc83-dd00-4782-bd57-965138fdfac6_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_b06dcc83-dd00-4782-bd57-965138fdfac6" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_b06dcc83-dd00-4782-bd57-965138fdfac6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_4d69c578-07ab-4565-9203-a8aa6b60eacc" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_b06dcc83-dd00-4782-bd57-965138fdfac6" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_4d69c578-07ab-4565-9203-a8aa6b60eacc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_e43cc8c7-ce47-43f2-ab9f-3fbb793b6a78" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_4d69c578-07ab-4565-9203-a8aa6b60eacc" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_e43cc8c7-ce47-43f2-ab9f-3fbb793b6a78" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/DescriptionofBusinessandBasisofPresentationDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#DescriptionofBusinessandBasisofPresentationDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/DescriptionofBusinessandBasisofPresentationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_de62974a-906c-4111-b4c2-73f2749d60f9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_NumberOfServiceFacilities_b22c5aac-7fe6-4f4f-b6ea-de5cd97c2520" xlink:href="klxe-20230930.xsd#klxe_NumberOfServiceFacilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_de62974a-906c-4111-b4c2-73f2749d60f9" xlink:to="loc_klxe_NumberOfServiceFacilities_b22c5aac-7fe6-4f4f-b6ea-de5cd97c2520" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_0ec94f1e-339c-42d7-b87a-e4e2bd29aaab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_de62974a-906c-4111-b4c2-73f2749d60f9" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_0ec94f1e-339c-42d7-b87a-e4e2bd29aaab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalentsNetOfAdjustment_40502b18-b1b3-4bbc-904b-187b1b60aa00" xlink:href="klxe-20230930.xsd#klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalentsNetOfAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_de62974a-906c-4111-b4c2-73f2749d60f9" xlink:to="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalentsNetOfAdjustment_40502b18-b1b3-4bbc-904b-187b1b60aa00" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_8a5f94b1-3ce2-4cbb-aedf-76dee7d56d22" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_de62974a-906c-4111-b4c2-73f2749d60f9" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_8a5f94b1-3ce2-4cbb-aedf-76dee7d56d22" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_05178801-44e4-49ea-a30e-79c42f5cada2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_8a5f94b1-3ce2-4cbb-aedf-76dee7d56d22" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_05178801-44e4-49ea-a30e-79c42f5cada2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_05178801-44e4-49ea-a30e-79c42f5cada2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_05178801-44e4-49ea-a30e-79c42f5cada2" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_05178801-44e4-49ea-a30e-79c42f5cada2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5288279e-b9cb-4b89-a99f-4baa85219293" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_05178801-44e4-49ea-a30e-79c42f5cada2" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5288279e-b9cb-4b89-a99f-4baa85219293" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_GreenesEnergyGroupLLCMember_06f83052-1e6f-4b27-9c9f-5d18c0d560dc" xlink:href="klxe-20230930.xsd#klxe_GreenesEnergyGroupLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5288279e-b9cb-4b89-a99f-4baa85219293" xlink:to="loc_klxe_GreenesEnergyGroupLLCMember_06f83052-1e6f-4b27-9c9f-5d18c0d560dc" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/BusinessCombinationsAdditionalInformationDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#BusinessCombinationsAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/BusinessCombinationsAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_7178deaa-8ad0-4291-ac5c-24e41a10f881" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_bc5f0d7a-525f-4e52-87de-dcd9220b9078" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7178deaa-8ad0-4291-ac5c-24e41a10f881" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_bc5f0d7a-525f-4e52-87de-dcd9220b9078" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalentsNetOfAdjustment_23a9a7aa-629b-4a6c-b5fc-9e0175ec6031" xlink:href="klxe-20230930.xsd#klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalentsNetOfAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7178deaa-8ad0-4291-ac5c-24e41a10f881" xlink:to="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalentsNetOfAdjustment_23a9a7aa-629b-4a6c-b5fc-9e0175ec6031" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_e2b5fee5-d7ee-4236-a997-6a8b47d76b6a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7178deaa-8ad0-4291-ac5c-24e41a10f881" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_e2b5fee5-d7ee-4236-a997-6a8b47d76b6a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_7b99be30-3ef2-4233-b5db-d51f25cd0e7b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7178deaa-8ad0-4291-ac5c-24e41a10f881" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_7b99be30-3ef2-4233-b5db-d51f25cd0e7b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_2cbde99e-bb3e-4970-a48c-ec473440f056" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7178deaa-8ad0-4291-ac5c-24e41a10f881" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_2cbde99e-bb3e-4970-a48c-ec473440f056" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_BusinessAcquisitionPotentialPostClosingAdjustmentsPercentageOfFullyDilutedOutstandingCommonStock_612b6cfd-bf63-4151-abf7-fe0fb88d9269" xlink:href="klxe-20230930.xsd#klxe_BusinessAcquisitionPotentialPostClosingAdjustmentsPercentageOfFullyDilutedOutstandingCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7178deaa-8ad0-4291-ac5c-24e41a10f881" xlink:to="loc_klxe_BusinessAcquisitionPotentialPostClosingAdjustmentsPercentageOfFullyDilutedOutstandingCommonStock_612b6cfd-bf63-4151-abf7-fe0fb88d9269" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_028de2ac-ec2c-42d9-a682-6c1ae9cef821" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_7178deaa-8ad0-4291-ac5c-24e41a10f881" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_028de2ac-ec2c-42d9-a682-6c1ae9cef821" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_b7fbc327-28c7-45f0-89bd-2d3cc7b5229e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_028de2ac-ec2c-42d9-a682-6c1ae9cef821" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_b7fbc327-28c7-45f0-89bd-2d3cc7b5229e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_b7fbc327-28c7-45f0-89bd-2d3cc7b5229e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_b7fbc327-28c7-45f0-89bd-2d3cc7b5229e" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_b7fbc327-28c7-45f0-89bd-2d3cc7b5229e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7b77d8ca-3c65-4c66-be6b-a66c8a07e4db" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_b7fbc327-28c7-45f0-89bd-2d3cc7b5229e" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7b77d8ca-3c65-4c66-be6b-a66c8a07e4db" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_GreenesEnergyGroupLLCMember_48925f3e-ac85-4c17-a876-43b0fca3dc63" xlink:href="klxe-20230930.xsd#klxe_GreenesEnergyGroupLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_7b77d8ca-3c65-4c66-be6b-a66c8a07e4db" xlink:to="loc_klxe_GreenesEnergyGroupLLCMember_48925f3e-ac85-4c17-a876-43b0fca3dc63" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/BusinessCombinationsScheduleofFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#BusinessCombinationsScheduleofFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/BusinessCombinationsScheduleofFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalentsNetOfAdjustment_aec0033e-a99e-4956-959f-946076b0f1b5" xlink:href="klxe-20230930.xsd#klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalentsNetOfAdjustment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:to="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalentsNetOfAdjustment_aec0033e-a99e-4956-959f-946076b0f1b5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_4fa133be-a08c-478c-bd15-8e10ccd626f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_4fa133be-a08c-478c-bd15-8e10ccd626f7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets_2acee46a-fd09-4785-a2ac-c9f2f2df6f91" xlink:href="klxe-20230930.xsd#klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:to="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets_2acee46a-fd09-4785-a2ac-c9f2f2df6f91" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_7d20dd19-fde9-4e5d-9f01-649c7747b1f0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_7d20dd19-fde9-4e5d-9f01-649c7747b1f0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_14429c94-5437-46c0-bf3a-8e5aa7f63b5b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_14429c94-5437-46c0-bf3a-8e5aa7f63b5b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedLiabilities_17616e09-d323-47df-aaf6-7b958893cf33" xlink:href="klxe-20230930.xsd#klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:to="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedLiabilities_17616e09-d323-47df-aaf6-7b958893cf33" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities_ce1f06b4-8cc6-4003-91a0-c70827c3f46e" xlink:href="klxe-20230930.xsd#klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:to="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities_ce1f06b4-8cc6-4003-91a0-c70827c3f46e" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_6486d4f9-9738-4e19-a12a-b24760e934c6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:to="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_6486d4f9-9738-4e19-a12a-b24760e934c6" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_40e2fe44-c0b9-4866-9ff4-6e076ae8579e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_40e2fe44-c0b9-4866-9ff4-6e076ae8579e" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentConsiderationTransferred_1da3c883-7255-440c-aefa-24c703b3e0f7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentConsiderationTransferred"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:to="loc_us-gaap_BusinessCombinationProvisionalInformationInitialAccountingIncompleteAdjustmentConsiderationTransferred_1da3c883-7255-440c-aefa-24c703b3e0f7" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_c0847c18-232c-4cec-accc-7cc510f419c3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_c0847c18-232c-4cec-accc-7cc510f419c3" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_757979fd-05e2-460c-a964-f09aac1b209e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_757979fd-05e2-460c-a964-f09aac1b209e" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_e9bd3eda-e63c-43cb-b478-30762c480a89" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_8cb42038-f165-493c-b985-4be137d9f436" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_e9bd3eda-e63c-43cb-b478-30762c480a89" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_5b08c271-8597-4e1d-b326-30543b93bdc9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_e9bd3eda-e63c-43cb-b478-30762c480a89" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_5b08c271-8597-4e1d-b326-30543b93bdc9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5b08c271-8597-4e1d-b326-30543b93bdc9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_5b08c271-8597-4e1d-b326-30543b93bdc9" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5b08c271-8597-4e1d-b326-30543b93bdc9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_f963497e-9f57-402f-a2ee-fc5054719751" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_5b08c271-8597-4e1d-b326-30543b93bdc9" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_f963497e-9f57-402f-a2ee-fc5054719751" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_GreenesEnergyGroupLLCMember_05360552-85b9-420e-b934-2c5b68e9cd03" xlink:href="klxe-20230930.xsd#klxe_GreenesEnergyGroupLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_f963497e-9f57-402f-a2ee-fc5054719751" xlink:to="loc_klxe_GreenesEnergyGroupLLCMember_05360552-85b9-420e-b934-2c5b68e9cd03" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/BusinessCombinationsProFormaInformationDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#BusinessCombinationsProFormaInformationDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/BusinessCombinationsProFormaInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_9698ac43-3590-4a00-a8e7-6d1afcced6ec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_6f19e206-1132-4ba6-b1db-8ded8302a609" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionsProFormaRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9698ac43-3590-4a00-a8e7-6d1afcced6ec" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_6f19e206-1132-4ba6-b1db-8ded8302a609" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_a4b3b716-d2d4-4af0-a8c4-714b6b84267b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9698ac43-3590-4a00-a8e7-6d1afcced6ec" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_a4b3b716-d2d4-4af0-a8c4-714b6b84267b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1b5efc86-c8bb-4550-a516-795ab09f6695" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_9698ac43-3590-4a00-a8e7-6d1afcced6ec" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1b5efc86-c8bb-4550-a516-795ab09f6695" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_414a4293-22fd-4c12-8286-09aa133c77c6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_1b5efc86-c8bb-4550-a516-795ab09f6695" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_414a4293-22fd-4c12-8286-09aa133c77c6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_414a4293-22fd-4c12-8286-09aa133c77c6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_414a4293-22fd-4c12-8286-09aa133c77c6" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_414a4293-22fd-4c12-8286-09aa133c77c6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5a255fec-448e-4c5f-a01d-a7022d3294c6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_414a4293-22fd-4c12-8286-09aa133c77c6" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5a255fec-448e-4c5f-a01d-a7022d3294c6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_GreenesEnergyGroupLLCMember_dda59ecd-d936-4edb-b4f6-da122d0fef53" xlink:href="klxe-20230930.xsd#klxe_GreenesEnergyGroupLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5a255fec-448e-4c5f-a01d-a7022d3294c6" xlink:to="loc_klxe_GreenesEnergyGroupLLCMember_dda59ecd-d936-4edb-b4f6-da122d0fef53" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/PropertyandEquipmentNetPropertyandEquipmentDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#PropertyandEquipmentNetPropertyandEquipmentDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/PropertyandEquipmentNetPropertyandEquipmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7c689f42-e991-493f-a2fb-aeafa0b2b4a7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_df8c12a0-1fef-4c7b-ac3e-69964d207e06" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7c689f42-e991-493f-a2fb-aeafa0b2b4a7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_df8c12a0-1fef-4c7b-ac3e-69964d207e06" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_45472a61-a08a-4518-84f7-2441628cb7a3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7c689f42-e991-493f-a2fb-aeafa0b2b4a7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_45472a61-a08a-4518-84f7-2441628cb7a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_b9af8324-b5bc-450d-95e0-a42aa5cc54b8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7c689f42-e991-493f-a2fb-aeafa0b2b4a7" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_b9af8324-b5bc-450d-95e0-a42aa5cc54b8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_8748023d-d9f7-4695-b0fa-0c60790bbb91" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7c689f42-e991-493f-a2fb-aeafa0b2b4a7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_8748023d-d9f7-4695-b0fa-0c60790bbb91" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_07bee402-1039-4b70-b16a-e236c2701940" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7c689f42-e991-493f-a2fb-aeafa0b2b4a7" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_07bee402-1039-4b70-b16a-e236c2701940" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_e9fd7d60-f415-4a30-9c5c-3d04a060b31d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7c689f42-e991-493f-a2fb-aeafa0b2b4a7" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_e9fd7d60-f415-4a30-9c5c-3d04a060b31d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_1f8ea242-343a-4cbd-b5d8-27ecf6ab69c2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7c689f42-e991-493f-a2fb-aeafa0b2b4a7" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_1f8ea242-343a-4cbd-b5d8-27ecf6ab69c2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_a92b1315-6fa6-42bc-ae27-0b17b86f50be" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_1f8ea242-343a-4cbd-b5d8-27ecf6ab69c2" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_a92b1315-6fa6-42bc-ae27-0b17b86f50be" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_a92b1315-6fa6-42bc-ae27-0b17b86f50be_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_a92b1315-6fa6-42bc-ae27-0b17b86f50be" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_a92b1315-6fa6-42bc-ae27-0b17b86f50be_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_b7468f5b-877e-49fe-b9d4-19cb9d9f379f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_a92b1315-6fa6-42bc-ae27-0b17b86f50be" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_b7468f5b-877e-49fe-b9d4-19cb9d9f379f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_DepreciablePropertyPlantAndEquipmentMember_3c91b7b3-6fce-4814-ad35-55116961d483" xlink:href="klxe-20230930.xsd#klxe_DepreciablePropertyPlantAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_b7468f5b-877e-49fe-b9d4-19cb9d9f379f" xlink:to="loc_klxe_DepreciablePropertyPlantAndEquipmentMember_3c91b7b3-6fce-4814-ad35-55116961d483" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandBuildingsAndImprovementsMember_848d0c24-1d6e-441e-89b8-005f8616460a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LandBuildingsAndImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klxe_DepreciablePropertyPlantAndEquipmentMember_3c91b7b3-6fce-4814-ad35-55116961d483" xlink:to="loc_us-gaap_LandBuildingsAndImprovementsMember_848d0c24-1d6e-441e-89b8-005f8616460a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_MachineryMember_d41f14c6-af43-445a-bdbb-dc76ddd140e1" xlink:href="klxe-20230930.xsd#klxe_MachineryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klxe_DepreciablePropertyPlantAndEquipmentMember_3c91b7b3-6fce-4814-ad35-55116961d483" xlink:to="loc_klxe_MachineryMember_d41f14c6-af43-445a-bdbb-dc76ddd140e1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_FurnitureAndEquipmentMember_f27ba48b-cb35-4552-849d-fac54e5574bb" xlink:href="klxe-20230930.xsd#klxe_FurnitureAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klxe_DepreciablePropertyPlantAndEquipmentMember_3c91b7b3-6fce-4814-ad35-55116961d483" xlink:to="loc_klxe_FurnitureAndEquipmentMember_f27ba48b-cb35-4552-849d-fac54e5574bb" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_FinanceLeaseRightOfUseAssetsMember_57f86440-e50b-4fdc-aeeb-78fcc4b7172d" xlink:href="klxe-20230930.xsd#klxe_FinanceLeaseRightOfUseAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klxe_DepreciablePropertyPlantAndEquipmentMember_3c91b7b3-6fce-4814-ad35-55116961d483" xlink:to="loc_klxe_FinanceLeaseRightOfUseAssetsMember_57f86440-e50b-4fdc-aeeb-78fcc4b7172d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressMember_14f73221-75f9-400d-b673-dd4680d5abbc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ConstructionInProgressMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_b7468f5b-877e-49fe-b9d4-19cb9d9f379f" xlink:to="loc_us-gaap_ConstructionInProgressMember_14f73221-75f9-400d-b673-dd4680d5abbc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_0fcad26e-8f11-465c-956b-c37e4b3c1dfc" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_1f8ea242-343a-4cbd-b5d8-27ecf6ab69c2" xlink:to="loc_srt_RangeAxis_0fcad26e-8f11-465c-956b-c37e4b3c1dfc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_0fcad26e-8f11-465c-956b-c37e4b3c1dfc_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_0fcad26e-8f11-465c-956b-c37e4b3c1dfc" xlink:to="loc_srt_RangeMember_0fcad26e-8f11-465c-956b-c37e4b3c1dfc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_fdafd6c5-9e52-42e0-b7c0-f605b4dce634" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_0fcad26e-8f11-465c-956b-c37e4b3c1dfc" xlink:to="loc_srt_RangeMember_fdafd6c5-9e52-42e0-b7c0-f605b4dce634" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_337fc5e9-7645-4987-8f10-f1ddf2f5f3c6" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_fdafd6c5-9e52-42e0-b7c0-f605b4dce634" xlink:to="loc_srt_MinimumMember_337fc5e9-7645-4987-8f10-f1ddf2f5f3c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_d9a8153b-8c6a-4f75-9be9-ab80b9434281" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_fdafd6c5-9e52-42e0-b7c0-f605b4dce634" xlink:to="loc_srt_MaximumMember_d9a8153b-8c6a-4f75-9be9-ab80b9434281" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/LongTermDebtLongtermDebtDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#LongTermDebtLongtermDebtDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/LongTermDebtLongtermDebtDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_5565918d-e3c4-4cdf-87b2-2fa121bbd5cc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_79766306-5679-4968-ad7c-756a846f4176" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5565918d-e3c4-4cdf-87b2-2fa121bbd5cc" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_79766306-5679-4968-ad7c-756a846f4176" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_9baa3b58-1e90-46be-a3a5-7ab8dea9daab" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5565918d-e3c4-4cdf-87b2-2fa121bbd5cc" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_9baa3b58-1e90-46be-a3a5-7ab8dea9daab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_97de8b4b-efaa-486b-8af2-322cee95e36d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5565918d-e3c4-4cdf-87b2-2fa121bbd5cc" xlink:to="loc_us-gaap_LongTermDebt_97de8b4b-efaa-486b-8af2-322cee95e36d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_bd915af0-ee39-4c10-a396-469d4eb9e33b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_5565918d-e3c4-4cdf-87b2-2fa121bbd5cc" xlink:to="loc_us-gaap_DebtInstrumentTable_bd915af0-ee39-4c10-a396-469d4eb9e33b" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_09397f33-6af7-47b2-aad3-bc0ba3bdecd8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_bd915af0-ee39-4c10-a396-469d4eb9e33b" xlink:to="loc_us-gaap_DebtInstrumentAxis_09397f33-6af7-47b2-aad3-bc0ba3bdecd8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_09397f33-6af7-47b2-aad3-bc0ba3bdecd8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_09397f33-6af7-47b2-aad3-bc0ba3bdecd8" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_09397f33-6af7-47b2-aad3-bc0ba3bdecd8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_ff281843-248e-468b-8359-5b5aeaffb5f3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_09397f33-6af7-47b2-aad3-bc0ba3bdecd8" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_ff281843-248e-468b-8359-5b5aeaffb5f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember_18c157ed-c404-4818-9121-a67347eeba5b" xlink:href="klxe-20230930.xsd#klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ff281843-248e-468b-8359-5b5aeaffb5f3" xlink:to="loc_klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember_18c157ed-c404-4818-9121-a67347eeba5b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_AssetBasedRevolvingCreditFacilityMember_9e836543-9adc-4386-a806-b3fd71b0d4f1" xlink:href="klxe-20230930.xsd#klxe_AssetBasedRevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_ff281843-248e-468b-8359-5b5aeaffb5f3" xlink:to="loc_klxe_AssetBasedRevolvingCreditFacilityMember_9e836543-9adc-4386-a806-b3fd71b0d4f1" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/LongTermDebtAdditionalInformationDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#LongTermDebtAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/LongTermDebtAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_499add29-73aa-4506-bb10-240256444e20" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_837ffddf-19d8-48f6-a790-b2edbea00b47" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_499add29-73aa-4506-bb10-240256444e20" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_837ffddf-19d8-48f6-a790-b2edbea00b47" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_f23706aa-cb02-48b4-a967-72c78d660595" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_499add29-73aa-4506-bb10-240256444e20" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_f23706aa-cb02-48b4-a967-72c78d660595" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_5522367a-f367-4f38-b20d-76f4557c3eb7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_499add29-73aa-4506-bb10-240256444e20" xlink:to="loc_us-gaap_LongTermDebt_5522367a-f367-4f38-b20d-76f4557c3eb7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrent_165c756c-4c29-4329-9c08-b1c5b1640f62" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_499add29-73aa-4506-bb10-240256444e20" xlink:to="loc_us-gaap_InterestPayableCurrent_165c756c-4c29-4329-9c08-b1c5b1640f62" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_8d3e8bff-f4e1-491a-9e68-1f0ff6ea76ca" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_499add29-73aa-4506-bb10-240256444e20" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_8d3e8bff-f4e1-491a-9e68-1f0ff6ea76ca" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_c070ca8b-210d-40a7-98c7-562f60d46872" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_499add29-73aa-4506-bb10-240256444e20" xlink:to="loc_us-gaap_LineOfCredit_c070ca8b-210d-40a7-98c7-562f60d46872" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_909ea5fa-a165-4884-855c-d8bb2b4aacf2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_499add29-73aa-4506-bb10-240256444e20" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_909ea5fa-a165-4884-855c-d8bb2b4aacf2" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_29528ad7-685e-4e87-83cc-ce30e4549989" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_499add29-73aa-4506-bb10-240256444e20" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_29528ad7-685e-4e87-83cc-ce30e4549989" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_9dc35e4e-d7a8-4c14-8468-7276d19f2ca3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_499add29-73aa-4506-bb10-240256444e20" xlink:to="loc_us-gaap_DebtInstrumentTable_9dc35e4e-d7a8-4c14-8468-7276d19f2ca3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_552fa9b7-8920-4edd-b2af-f361734d2042" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_9dc35e4e-d7a8-4c14-8468-7276d19f2ca3" xlink:to="loc_us-gaap_DebtInstrumentAxis_552fa9b7-8920-4edd-b2af-f361734d2042" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_552fa9b7-8920-4edd-b2af-f361734d2042_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_552fa9b7-8920-4edd-b2af-f361734d2042" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_552fa9b7-8920-4edd-b2af-f361734d2042_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_380247b3-6509-4f1e-aea1-fcbc9dc49bec" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_552fa9b7-8920-4edd-b2af-f361734d2042" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_380247b3-6509-4f1e-aea1-fcbc9dc49bec" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember_421b1b52-b3e7-4298-82b1-d1a7f4aede9f" xlink:href="klxe-20230930.xsd#klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_380247b3-6509-4f1e-aea1-fcbc9dc49bec" xlink:to="loc_klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember_421b1b52-b3e7-4298-82b1-d1a7f4aede9f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_AssetBasedRevolvingCreditFacilityMember_a25b07cc-70e5-4b1a-99ce-6baca83be75a" xlink:href="klxe-20230930.xsd#klxe_AssetBasedRevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_380247b3-6509-4f1e-aea1-fcbc9dc49bec" xlink:to="loc_klxe_AssetBasedRevolvingCreditFacilityMember_a25b07cc-70e5-4b1a-99ce-6baca83be75a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_a745a6ce-e462-4245-953d-34c1767f1a50" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_9dc35e4e-d7a8-4c14-8468-7276d19f2ca3" xlink:to="loc_us-gaap_CreditFacilityAxis_a745a6ce-e462-4245-953d-34c1767f1a50" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_a745a6ce-e462-4245-953d-34c1767f1a50_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_a745a6ce-e462-4245-953d-34c1767f1a50" xlink:to="loc_us-gaap_CreditFacilityDomain_a745a6ce-e462-4245-953d-34c1767f1a50_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_4d835db1-8af8-4025-a015-9a678ca49e4a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_a745a6ce-e462-4245-953d-34c1767f1a50" xlink:to="loc_us-gaap_CreditFacilityDomain_4d835db1-8af8-4025-a015-9a678ca49e4a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_b5ec7e58-2bc0-44c0-8db8-0a8f80ea5095" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_4d835db1-8af8-4025-a015-9a678ca49e4a" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_b5ec7e58-2bc0-44c0-8db8-0a8f80ea5095" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/FairValueInformationAdditionalInformationDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#FairValueInformationAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/FairValueInformationAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_7dd5a2fa-836b-4b2f-9308-fb49fd22f4a0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_95912aba-ecf2-43a4-bb90-83fb7051c88d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_7dd5a2fa-836b-4b2f-9308-fb49fd22f4a0" xlink:to="loc_us-gaap_LineOfCredit_95912aba-ecf2-43a4-bb90-83fb7051c88d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_340ceaeb-1938-4e85-83b3-bbebb6375a5d" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_7dd5a2fa-836b-4b2f-9308-fb49fd22f4a0" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_340ceaeb-1938-4e85-83b3-bbebb6375a5d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_6928a635-d8c6-42d8-b18d-5e91d74c0e70" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_7dd5a2fa-836b-4b2f-9308-fb49fd22f4a0" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_6928a635-d8c6-42d8-b18d-5e91d74c0e70" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_17d65405-51bd-4877-bda1-b00c62670a87" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_6928a635-d8c6-42d8-b18d-5e91d74c0e70" xlink:to="loc_us-gaap_CreditFacilityAxis_17d65405-51bd-4877-bda1-b00c62670a87" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_17d65405-51bd-4877-bda1-b00c62670a87_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_17d65405-51bd-4877-bda1-b00c62670a87" xlink:to="loc_us-gaap_CreditFacilityDomain_17d65405-51bd-4877-bda1-b00c62670a87_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_0a04d8af-5612-431d-a5f5-491de9808d37" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_17d65405-51bd-4877-bda1-b00c62670a87" xlink:to="loc_us-gaap_CreditFacilityDomain_0a04d8af-5612-431d-a5f5-491de9808d37" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_ade6e64a-01ee-4c10-b0fd-b0b55b18afe4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_0a04d8af-5612-431d-a5f5-491de9808d37" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_ade6e64a-01ee-4c10-b0fd-b0b55b18afe4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_ce85192b-6964-4ed4-aeb0-aeea63be3220" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_6928a635-d8c6-42d8-b18d-5e91d74c0e70" xlink:to="loc_us-gaap_DebtInstrumentAxis_ce85192b-6964-4ed4-aeb0-aeea63be3220" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_ce85192b-6964-4ed4-aeb0-aeea63be3220_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_ce85192b-6964-4ed4-aeb0-aeea63be3220" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_ce85192b-6964-4ed4-aeb0-aeea63be3220_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_74ee379f-6abd-4651-8e9e-298a8bfa0da8" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_ce85192b-6964-4ed4-aeb0-aeea63be3220" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_74ee379f-6abd-4651-8e9e-298a8bfa0da8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_AssetBasedRevolvingCreditFacilityMember_19800b78-fe9c-4f3a-b2af-f2c824766f7e" xlink:href="klxe-20230930.xsd#klxe_AssetBasedRevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_74ee379f-6abd-4651-8e9e-298a8bfa0da8" xlink:to="loc_klxe_AssetBasedRevolvingCreditFacilityMember_19800b78-fe9c-4f3a-b2af-f2c824766f7e" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/FairValueInformationSeniorSecuredNotesandAssetsHeldforSaleDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#FairValueInformationSeniorSecuredNotesandAssetsHeldforSaleDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/FairValueInformationSeniorSecuredNotesandAssetsHeldforSaleDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_ab57f534-7fde-4f89-b656-f43b4defbf77" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_7985ba6a-eb11-42c8-9ae0-d35719f9276c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_ab57f534-7fde-4f89-b656-f43b4defbf77" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_7985ba6a-eb11-42c8-9ae0-d35719f9276c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_f44fc227-8bff-4f2d-89e3-0b88198d048b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_ab57f534-7fde-4f89-b656-f43b4defbf77" xlink:to="loc_us-gaap_LongTermDebtFairValue_f44fc227-8bff-4f2d-89e3-0b88198d048b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure_61a38e44-9796-4ae4-adff-95b0c3af1ea6" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_ab57f534-7fde-4f89-b656-f43b4defbf77" xlink:to="loc_us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure_61a38e44-9796-4ae4-adff-95b0c3af1ea6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_7d9d43bf-8a14-41ad-b396-201d24e76bae" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_ab57f534-7fde-4f89-b656-f43b4defbf77" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_7d9d43bf-8a14-41ad-b396-201d24e76bae" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_8eb55ab8-be27-4b93-8efd-31e26f948406" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_7d9d43bf-8a14-41ad-b396-201d24e76bae" xlink:to="loc_us-gaap_DebtInstrumentAxis_8eb55ab8-be27-4b93-8efd-31e26f948406" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_8eb55ab8-be27-4b93-8efd-31e26f948406_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_8eb55ab8-be27-4b93-8efd-31e26f948406" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_8eb55ab8-be27-4b93-8efd-31e26f948406_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_c695d35f-d407-47fc-8bde-76c7398fb1dd" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_8eb55ab8-be27-4b93-8efd-31e26f948406" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_c695d35f-d407-47fc-8bde-76c7398fb1dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember_f309aa54-416a-4286-965d-b62d22627283" xlink:href="klxe-20230930.xsd#klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_c695d35f-d407-47fc-8bde-76c7398fb1dd" xlink:to="loc_klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember_f309aa54-416a-4286-965d-b62d22627283" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_4992f9fd-b502-4a77-b2c8-7b6d276d9a4b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_7d9d43bf-8a14-41ad-b396-201d24e76bae" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_4992f9fd-b502-4a77-b2c8-7b6d276d9a4b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4992f9fd-b502-4a77-b2c8-7b6d276d9a4b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_4992f9fd-b502-4a77-b2c8-7b6d276d9a4b" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_4992f9fd-b502-4a77-b2c8-7b6d276d9a4b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_34cd2a10-7a09-49f9-9445-2a0f9ed4c14f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_4992f9fd-b502-4a77-b2c8-7b6d276d9a4b" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_34cd2a10-7a09-49f9-9445-2a0f9ed4c14f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_9cb82f1a-fb1f-44b2-9212-e5c3a51860e3" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_34cd2a10-7a09-49f9-9445-2a0f9ed4c14f" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_9cb82f1a-fb1f-44b2-9212-e5c3a51860e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_21b20829-52ab-4ba8-b584-9d4ed50dc0e5" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_34cd2a10-7a09-49f9-9445-2a0f9ed4c14f" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_21b20829-52ab-4ba8-b584-9d4ed50dc0e5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_4b3a97a2-c78e-4ce0-92e4-3aedc8deb2b2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_34cd2a10-7a09-49f9-9445-2a0f9ed4c14f" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_4b3a97a2-c78e-4ce0-92e4-3aedc8deb2b2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_8a47b975-753f-4f92-a0a4-156cb0695897" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_7d9d43bf-8a14-41ad-b396-201d24e76bae" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_8a47b975-753f-4f92-a0a4-156cb0695897" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_8a47b975-753f-4f92-a0a4-156cb0695897_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_8a47b975-753f-4f92-a0a4-156cb0695897" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_8a47b975-753f-4f92-a0a4-156cb0695897_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_a4eea360-2578-4b04-98f8-09ed25b8b25a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_8a47b975-753f-4f92-a0a4-156cb0695897" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_a4eea360-2578-4b04-98f8-09ed25b8b25a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_8580f7e4-2d9c-46c6-9433-bd81eb25a903" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_a4eea360-2578-4b04-98f8-09ed25b8b25a" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_8580f7e4-2d9c-46c6-9433-bd81eb25a903" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/StockholdersEquityDeficitDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#StockholdersEquityDeficitDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/StockholdersEquityDeficitDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c005ca0c-dc61-45fe-8577-e406c27ddeba" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_4984c196-0952-4b1d-93df-5fc8af12c507" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c005ca0c-dc61-45fe-8577-e406c27ddeba" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_4984c196-0952-4b1d-93df-5fc8af12c507" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SaleOfStockMaximumConsiderationOnTransaction_dd39058f-f7bf-4738-be98-04fc1d25ee07" xlink:href="klxe-20230930.xsd#klxe_SaleOfStockMaximumConsiderationOnTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c005ca0c-dc61-45fe-8577-e406c27ddeba" xlink:to="loc_klxe_SaleOfStockMaximumConsiderationOnTransaction_dd39058f-f7bf-4738-be98-04fc1d25ee07" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SaleOfStockCommissionFeePercentage_38fb4254-90c2-4f53-9e92-d8f8fbff3298" xlink:href="klxe-20230930.xsd#klxe_SaleOfStockCommissionFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c005ca0c-dc61-45fe-8577-e406c27ddeba" xlink:to="loc_klxe_SaleOfStockCommissionFeePercentage_38fb4254-90c2-4f53-9e92-d8f8fbff3298" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_50eaa53d-5ee2-46bd-a0ae-5787fb26185b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c005ca0c-dc61-45fe-8577-e406c27ddeba" xlink:to="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_50eaa53d-5ee2-46bd-a0ae-5787fb26185b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_1ac92445-afa4-4e7f-b608-7feb52fe5c0a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c005ca0c-dc61-45fe-8577-e406c27ddeba" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_1ac92445-afa4-4e7f-b608-7feb52fe5c0a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_d3affdce-228e-4d99-a8c0-e839d9de9ae1" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleOfStockConsiderationReceivedOnTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c005ca0c-dc61-45fe-8577-e406c27ddeba" xlink:to="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_d3affdce-228e-4d99-a8c0-e839d9de9ae1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_CommonStockIncreaseDecreaseInCapitalSharesReservedForFutureIssuance_b91516ab-189a-4767-82f8-b6d469b37483" xlink:href="klxe-20230930.xsd#klxe_CommonStockIncreaseDecreaseInCapitalSharesReservedForFutureIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c005ca0c-dc61-45fe-8577-e406c27ddeba" xlink:to="loc_klxe_CommonStockIncreaseDecreaseInCapitalSharesReservedForFutureIssuance_b91516ab-189a-4767-82f8-b6d469b37483" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_55cd3165-b9df-4787-8524-1d040082191e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c005ca0c-dc61-45fe-8577-e406c27ddeba" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_55cd3165-b9df-4787-8524-1d040082191e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_AllocatedShareBasedCompensationExpenseNetOfAdjustments_cd6aa4c4-919f-4800-901e-3bc5e097896c" xlink:href="klxe-20230930.xsd#klxe_AllocatedShareBasedCompensationExpenseNetOfAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c005ca0c-dc61-45fe-8577-e406c27ddeba" xlink:to="loc_klxe_AllocatedShareBasedCompensationExpenseNetOfAdjustments_cd6aa4c4-919f-4800-901e-3bc5e097896c" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_8154cd5d-774f-4be8-ac2d-34b532b12734" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c005ca0c-dc61-45fe-8577-e406c27ddeba" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_8154cd5d-774f-4be8-ac2d-34b532b12734" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ca736a4b-f939-46d8-97cc-8dfd70528701" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_c005ca0c-dc61-45fe-8577-e406c27ddeba" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ca736a4b-f939-46d8-97cc-8dfd70528701" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_4ada1c18-fd12-420a-af8e-a680d67f64e4" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SubsidiarySaleOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ca736a4b-f939-46d8-97cc-8dfd70528701" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_4ada1c18-fd12-420a-af8e-a680d67f64e4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_4ada1c18-fd12-420a-af8e-a680d67f64e4_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_4ada1c18-fd12-420a-af8e-a680d67f64e4" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_4ada1c18-fd12-420a-af8e-a680d67f64e4_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_a443effe-1d17-4088-818c-05a1647d1061" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_4ada1c18-fd12-420a-af8e-a680d67f64e4" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_a443effe-1d17-4088-818c-05a1647d1061" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_AtTheMarketOfferingMember_05ea07ec-24a2-48ca-a32e-29109ce35c16" xlink:href="klxe-20230930.xsd#klxe_AtTheMarketOfferingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_a443effe-1d17-4088-818c-05a1647d1061" xlink:to="loc_klxe_AtTheMarketOfferingMember_05ea07ec-24a2-48ca-a32e-29109ce35c16" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/SegmentReportingRevenuesandOperatingIncomeLossbyReportableSegmentDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#SegmentReportingRevenuesandOperatingIncomeLossbyReportableSegmentDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/SegmentReportingRevenuesandOperatingIncomeLossbyReportableSegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingRevenueReconcilingItemLineItems_76753fda-8ac8-414a-84f1-cfe20e92f49f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingRevenueReconcilingItemLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_fde7146e-1b3b-4aa3-bcc0-87eee8cef181" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingRevenueReconcilingItemLineItems_76753fda-8ac8-414a-84f1-cfe20e92f49f" xlink:to="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_fde7146e-1b3b-4aa3-bcc0-87eee8cef181" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_9148d575-00bf-4887-bf82-0820c5eb1bda" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_NumberOfReportableSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_fde7146e-1b3b-4aa3-bcc0-87eee8cef181" xlink:to="loc_us-gaap_NumberOfReportableSegments_9148d575-00bf-4887-bf82-0820c5eb1bda" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_91ea3b8d-5953-414c-b185-d66bbcb93269" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_fde7146e-1b3b-4aa3-bcc0-87eee8cef181" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_91ea3b8d-5953-414c-b185-d66bbcb93269" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_6e719034-1815-49ba-9ffd-e78701393961" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_fde7146e-1b3b-4aa3-bcc0-87eee8cef181" xlink:to="loc_us-gaap_OperatingIncomeLoss_6e719034-1815-49ba-9ffd-e78701393961" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_4c40f3cb-333f-4566-96dc-7ba57dfd4c5f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_fde7146e-1b3b-4aa3-bcc0-87eee8cef181" xlink:to="loc_us-gaap_InvestmentIncomeInterest_4c40f3cb-333f-4566-96dc-7ba57dfd4c5f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_4884aec2-0b59-4453-85d1-1cf9cd0c8ebb" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_InterestExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_fde7146e-1b3b-4aa3-bcc0-87eee8cef181" xlink:to="loc_us-gaap_InterestExpense_4884aec2-0b59-4453-85d1-1cf9cd0c8ebb" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_19d7d004-4c79-4a31-9585-c19f30ddf84a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_fde7146e-1b3b-4aa3-bcc0-87eee8cef181" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_19d7d004-4c79-4a31-9585-c19f30ddf84a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable_05f8c59a-f5fb-4590-b195-9cea2fd38e32" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingRevenueReconcilingItemLineItems_76753fda-8ac8-414a-84f1-cfe20e92f49f" xlink:to="loc_us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable_05f8c59a-f5fb-4590-b195-9cea2fd38e32" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_e70697ed-a616-44aa-953a-f098bfdc3c05" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable_05f8c59a-f5fb-4590-b195-9cea2fd38e32" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_e70697ed-a616-44aa-953a-f098bfdc3c05" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_e70697ed-a616-44aa-953a-f098bfdc3c05_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_e70697ed-a616-44aa-953a-f098bfdc3c05" xlink:to="loc_us-gaap_SegmentDomain_e70697ed-a616-44aa-953a-f098bfdc3c05_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_bd7d802e-1b30-47c4-b26d-16bfee169eb0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_e70697ed-a616-44aa-953a-f098bfdc3c05" xlink:to="loc_us-gaap_SegmentDomain_bd7d802e-1b30-47c4-b26d-16bfee169eb0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_RockyMountainsMember_1a9f3826-157b-4fe8-81be-2a8fb14c016c" xlink:href="klxe-20230930.xsd#klxe_RockyMountainsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_bd7d802e-1b30-47c4-b26d-16bfee169eb0" xlink:to="loc_klxe_RockyMountainsMember_1a9f3826-157b-4fe8-81be-2a8fb14c016c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SouthwestMember_1d65b592-209e-4cfa-8a8f-81858403a98b" xlink:href="klxe-20230930.xsd#klxe_SouthwestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_bd7d802e-1b30-47c4-b26d-16bfee169eb0" xlink:to="loc_klxe_SouthwestMember_1d65b592-209e-4cfa-8a8f-81858403a98b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_NortheastMember_6208c11e-30ec-4ade-9c22-c390b94b7963" xlink:href="klxe-20230930.xsd#klxe_NortheastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_bd7d802e-1b30-47c4-b26d-16bfee169eb0" xlink:to="loc_klxe_NortheastMember_6208c11e-30ec-4ade-9c22-c390b94b7963" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_dc238498-b583-40fc-bfd0-a16a8d543f44" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable_05f8c59a-f5fb-4590-b195-9cea2fd38e32" xlink:to="loc_srt_ConsolidationItemsAxis_dc238498-b583-40fc-bfd0-a16a8d543f44" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_dc238498-b583-40fc-bfd0-a16a8d543f44_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_dc238498-b583-40fc-bfd0-a16a8d543f44" xlink:to="loc_srt_ConsolidationItemsDomain_dc238498-b583-40fc-bfd0-a16a8d543f44_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_312a78eb-e446-436c-806e-99272547556e" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_dc238498-b583-40fc-bfd0-a16a8d543f44" xlink:to="loc_srt_ConsolidationItemsDomain_312a78eb-e446-436c-806e-99272547556e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_261d7389-c513-4df5-a19b-41e6f7405355" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_312a78eb-e446-436c-806e-99272547556e" xlink:to="loc_us-gaap_OperatingSegmentsMember_261d7389-c513-4df5-a19b-41e6f7405355" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_CorporateAndReconcilingItemsMember_d7fc1cd1-4dfa-41b5-a2a9-1121455813eb" xlink:href="klxe-20230930.xsd#klxe_CorporateAndReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_312a78eb-e446-436c-806e-99272547556e" xlink:to="loc_klxe_CorporateAndReconcilingItemsMember_d7fc1cd1-4dfa-41b5-a2a9-1121455813eb" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/SegmentReportingRevenuesbyServiceOfferingbyReportableSegmentDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#SegmentReportingRevenuesbyServiceOfferingbyReportableSegmentDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/SegmentReportingRevenuesbyServiceOfferingbyReportableSegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_541e421d-d243-4e57-b90f-d4518b651358" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_4b5d74af-4598-4bb5-a1c2-06022fe3d38c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_541e421d-d243-4e57-b90f-d4518b651358" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_4b5d74af-4598-4bb5-a1c2-06022fe3d38c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3f4af8b2-8aea-42ee-8249-b6e6e66ce360" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_541e421d-d243-4e57-b90f-d4518b651358" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3f4af8b2-8aea-42ee-8249-b6e6e66ce360" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_6026c9a8-4ddc-48ab-aee8-5342a2666372" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3f4af8b2-8aea-42ee-8249-b6e6e66ce360" xlink:to="loc_srt_ProductOrServiceAxis_6026c9a8-4ddc-48ab-aee8-5342a2666372" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_6026c9a8-4ddc-48ab-aee8-5342a2666372_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_6026c9a8-4ddc-48ab-aee8-5342a2666372" xlink:to="loc_srt_ProductsAndServicesDomain_6026c9a8-4ddc-48ab-aee8-5342a2666372_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_4a36888d-b6a6-430d-aace-440dd9462185" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_6026c9a8-4ddc-48ab-aee8-5342a2666372" xlink:to="loc_srt_ProductsAndServicesDomain_4a36888d-b6a6-430d-aace-440dd9462185" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_DrillingRevenuesMember_85ed2909-f315-4e3b-8501-a3c75294e2ff" xlink:href="klxe-20230930.xsd#klxe_DrillingRevenuesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4a36888d-b6a6-430d-aace-440dd9462185" xlink:to="loc_klxe_DrillingRevenuesMember_85ed2909-f315-4e3b-8501-a3c75294e2ff" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_CompletionRevenuesMember_425489fb-af35-45f1-9e3c-552aaf8ca6f9" xlink:href="klxe-20230930.xsd#klxe_CompletionRevenuesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4a36888d-b6a6-430d-aace-440dd9462185" xlink:to="loc_klxe_CompletionRevenuesMember_425489fb-af35-45f1-9e3c-552aaf8ca6f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_ProductionRevenuesMember_a47e2ee2-9855-4c60-b1b5-1faa8f1f04b4" xlink:href="klxe-20230930.xsd#klxe_ProductionRevenuesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4a36888d-b6a6-430d-aace-440dd9462185" xlink:to="loc_klxe_ProductionRevenuesMember_a47e2ee2-9855-4c60-b1b5-1faa8f1f04b4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_InterventionRevenuesMember_e96429e4-ecc7-463b-a843-30adfed204db" xlink:href="klxe-20230930.xsd#klxe_InterventionRevenuesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_4a36888d-b6a6-430d-aace-440dd9462185" xlink:to="loc_klxe_InterventionRevenuesMember_e96429e4-ecc7-463b-a843-30adfed204db" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_b5b98949-fe79-4918-91d2-1c7d1b7d8e1b" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_3f4af8b2-8aea-42ee-8249-b6e6e66ce360" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_b5b98949-fe79-4918-91d2-1c7d1b7d8e1b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_b5b98949-fe79-4918-91d2-1c7d1b7d8e1b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_b5b98949-fe79-4918-91d2-1c7d1b7d8e1b" xlink:to="loc_us-gaap_SegmentDomain_b5b98949-fe79-4918-91d2-1c7d1b7d8e1b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_59cc5de3-437d-415f-a31d-79301af78fe9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_b5b98949-fe79-4918-91d2-1c7d1b7d8e1b" xlink:to="loc_us-gaap_SegmentDomain_59cc5de3-437d-415f-a31d-79301af78fe9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_RockyMountainsMember_cb6436c6-1357-4fd5-88d9-3a81241d421e" xlink:href="klxe-20230930.xsd#klxe_RockyMountainsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_59cc5de3-437d-415f-a31d-79301af78fe9" xlink:to="loc_klxe_RockyMountainsMember_cb6436c6-1357-4fd5-88d9-3a81241d421e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SouthwestMember_02ce8845-78b4-46f1-bc10-d9d241000cd1" xlink:href="klxe-20230930.xsd#klxe_SouthwestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_59cc5de3-437d-415f-a31d-79301af78fe9" xlink:to="loc_klxe_SouthwestMember_02ce8845-78b4-46f1-bc10-d9d241000cd1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_NortheastMember_001ad8f2-2888-42ad-9f63-eaf1981084c2" xlink:href="klxe-20230930.xsd#klxe_NortheastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_59cc5de3-437d-415f-a31d-79301af78fe9" xlink:to="loc_klxe_NortheastMember_001ad8f2-2888-42ad-9f63-eaf1981084c2" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/SegmentReportingCapitalExpendituresbyReportableSegmentDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#SegmentReportingCapitalExpendituresbyReportableSegmentDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/SegmentReportingCapitalExpendituresbyReportableSegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_17f5526d-83c0-4934-b199-12758cc199d7" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_f817b602-8e04-4037-9f85-661dfb4a1160" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_17f5526d-83c0-4934-b199-12758cc199d7" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_f817b602-8e04-4037-9f85-661dfb4a1160" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_df78bf2a-1d49-47ca-bf22-474a9ab527dc" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_17f5526d-83c0-4934-b199-12758cc199d7" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_df78bf2a-1d49-47ca-bf22-474a9ab527dc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_b07f40b3-a16d-428b-918e-d93e19dcb95e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_df78bf2a-1d49-47ca-bf22-474a9ab527dc" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_b07f40b3-a16d-428b-918e-d93e19dcb95e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_b07f40b3-a16d-428b-918e-d93e19dcb95e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_b07f40b3-a16d-428b-918e-d93e19dcb95e" xlink:to="loc_us-gaap_SegmentDomain_b07f40b3-a16d-428b-918e-d93e19dcb95e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_ccc09888-77fe-4f16-a9bf-10081160a8d9" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_b07f40b3-a16d-428b-918e-d93e19dcb95e" xlink:to="loc_us-gaap_SegmentDomain_ccc09888-77fe-4f16-a9bf-10081160a8d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_RockyMountainsMember_e103e4e9-86d0-4884-8d1c-32c0c7443965" xlink:href="klxe-20230930.xsd#klxe_RockyMountainsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ccc09888-77fe-4f16-a9bf-10081160a8d9" xlink:to="loc_klxe_RockyMountainsMember_e103e4e9-86d0-4884-8d1c-32c0c7443965" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SouthwestMember_c96b9346-2b87-47da-91df-77fb819d1d25" xlink:href="klxe-20230930.xsd#klxe_SouthwestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ccc09888-77fe-4f16-a9bf-10081160a8d9" xlink:to="loc_klxe_SouthwestMember_c96b9346-2b87-47da-91df-77fb819d1d25" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_NortheastMember_e8b2de6f-1f9c-456c-9687-acc523e36e4b" xlink:href="klxe-20230930.xsd#klxe_NortheastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_ccc09888-77fe-4f16-a9bf-10081160a8d9" xlink:to="loc_klxe_NortheastMember_e8b2de6f-1f9c-456c-9687-acc523e36e4b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_e826b9a7-62b8-4010-9ed9-90e961cfbf60" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_df78bf2a-1d49-47ca-bf22-474a9ab527dc" xlink:to="loc_srt_ConsolidationItemsAxis_e826b9a7-62b8-4010-9ed9-90e961cfbf60" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_e826b9a7-62b8-4010-9ed9-90e961cfbf60_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_e826b9a7-62b8-4010-9ed9-90e961cfbf60" xlink:to="loc_srt_ConsolidationItemsDomain_e826b9a7-62b8-4010-9ed9-90e961cfbf60_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_4b232ab3-f486-4e48-990d-33afb614f076" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_e826b9a7-62b8-4010-9ed9-90e961cfbf60" xlink:to="loc_srt_ConsolidationItemsDomain_4b232ab3-f486-4e48-990d-33afb614f076" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_dc389cf4-80f6-41c0-b7f9-7f46b0a686a0" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_4b232ab3-f486-4e48-990d-33afb614f076" xlink:to="loc_us-gaap_OperatingSegmentsMember_dc389cf4-80f6-41c0-b7f9-7f46b0a686a0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_CorporateAndReconcilingItemsMember_f0d59701-34ad-479f-85b7-89a9f5c009f8" xlink:href="klxe-20230930.xsd#klxe_CorporateAndReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_4b232ab3-f486-4e48-990d-33afb614f076" xlink:to="loc_klxe_CorporateAndReconcilingItemsMember_f0d59701-34ad-479f-85b7-89a9f5c009f8" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/SegmentReportingTotalAssetsbyReportableSegmentDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#SegmentReportingTotalAssetsbyReportableSegmentDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/SegmentReportingTotalAssetsbyReportableSegmentDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingAssetReconcilingItemLineItems_dfcb1ac2-c47a-46f7-9c27-924960dfdf5f" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentReportingAssetReconcilingItemLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_ba9d393d-6c34-48bb-9db6-bda478b34518" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingAssetReconcilingItemLineItems_dfcb1ac2-c47a-46f7-9c27-924960dfdf5f" xlink:to="loc_us-gaap_Assets_ba9d393d-6c34-48bb-9db6-bda478b34518" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable_b01fcb83-a744-4398-a15a-d53ed7b5103e" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingAssetReconcilingItemLineItems_dfcb1ac2-c47a-46f7-9c27-924960dfdf5f" xlink:to="loc_us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable_b01fcb83-a744-4398-a15a-d53ed7b5103e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_b9d6606d-c657-4536-984d-12d9502a8818" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable_b01fcb83-a744-4398-a15a-d53ed7b5103e" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_b9d6606d-c657-4536-984d-12d9502a8818" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_b9d6606d-c657-4536-984d-12d9502a8818_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_b9d6606d-c657-4536-984d-12d9502a8818" xlink:to="loc_us-gaap_SegmentDomain_b9d6606d-c657-4536-984d-12d9502a8818_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_0e458424-32ba-4cc8-a9ab-7b4b73e3f980" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_b9d6606d-c657-4536-984d-12d9502a8818" xlink:to="loc_us-gaap_SegmentDomain_0e458424-32ba-4cc8-a9ab-7b4b73e3f980" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_RockyMountainsMember_76108b36-125f-484c-a6e3-2313bfa9a896" xlink:href="klxe-20230930.xsd#klxe_RockyMountainsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_0e458424-32ba-4cc8-a9ab-7b4b73e3f980" xlink:to="loc_klxe_RockyMountainsMember_76108b36-125f-484c-a6e3-2313bfa9a896" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SouthwestMember_7b3000a0-16f2-47e4-af4c-937d87b27950" xlink:href="klxe-20230930.xsd#klxe_SouthwestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_0e458424-32ba-4cc8-a9ab-7b4b73e3f980" xlink:to="loc_klxe_SouthwestMember_7b3000a0-16f2-47e4-af4c-937d87b27950" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_NortheastMember_1cac914e-1e39-460f-a880-4e1f59a54aca" xlink:href="klxe-20230930.xsd#klxe_NortheastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_0e458424-32ba-4cc8-a9ab-7b4b73e3f980" xlink:to="loc_klxe_NortheastMember_1cac914e-1e39-460f-a880-4e1f59a54aca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_38314083-e76b-4db1-88fe-a812ff36d5de" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable_b01fcb83-a744-4398-a15a-d53ed7b5103e" xlink:to="loc_srt_ConsolidationItemsAxis_38314083-e76b-4db1-88fe-a812ff36d5de" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_38314083-e76b-4db1-88fe-a812ff36d5de_default" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_38314083-e76b-4db1-88fe-a812ff36d5de" xlink:to="loc_srt_ConsolidationItemsDomain_38314083-e76b-4db1-88fe-a812ff36d5de_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_f6ceea5e-6ff8-4a5f-8ba4-472a7b0f5913" xlink:href="https://xbrl.fasb.org/srt/2023/elts/srt-2023.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_38314083-e76b-4db1-88fe-a812ff36d5de" xlink:to="loc_srt_ConsolidationItemsDomain_f6ceea5e-6ff8-4a5f-8ba4-472a7b0f5913" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_856c42b6-064b-40df-8ddc-2f47a92c3d56" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_f6ceea5e-6ff8-4a5f-8ba4-472a7b0f5913" xlink:to="loc_us-gaap_OperatingSegmentsMember_856c42b6-064b-40df-8ddc-2f47a92c3d56" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_CorporateAndReconcilingItemsMember_1c547753-bdd2-45f5-af1f-ec4984ad2562" xlink:href="klxe-20230930.xsd#klxe_CorporateAndReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_f6ceea5e-6ff8-4a5f-8ba4-472a7b0f5913" xlink:to="loc_klxe_CorporateAndReconcilingItemsMember_1c547753-bdd2-45f5-af1f-ec4984ad2562" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="simple" xlink:href="klxe-20230930.xsd#NetIncomeLossPerCommonShareAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicLineItems_7a5bb430-bb4e-4532-b677-ab49467b135a" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_EarningsPerShareBasicLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_0bd33944-fe6f-4e3c-bbf5-7afbd01e24f2" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_7a5bb430-bb4e-4532-b677-ab49467b135a" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_0bd33944-fe6f-4e3c-bbf5-7afbd01e24f2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_b84a0611-0eff-4c79-bbd0-d63dd882196c" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_7a5bb430-bb4e-4532-b677-ab49467b135a" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_b84a0611-0eff-4c79-bbd0-d63dd882196c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_3a3cb804-d452-46fa-8a01-b35c64b35b75" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_b84a0611-0eff-4c79-bbd0-d63dd882196c" xlink:to="loc_us-gaap_AwardTypeAxis_3a3cb804-d452-46fa-8a01-b35c64b35b75" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3a3cb804-d452-46fa-8a01-b35c64b35b75_default" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_3a3cb804-d452-46fa-8a01-b35c64b35b75" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_3a3cb804-d452-46fa-8a01-b35c64b35b75_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e80397de-69b6-42ed-8983-380b5f8f3151" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_3a3cb804-d452-46fa-8a01-b35c64b35b75" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e80397de-69b6-42ed-8983-380b5f8f3151" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_415c3c90-1bf0-479a-b568-23a9305cee14" xlink:href="https://xbrl.fasb.org/us-gaap/2023/elts/us-gaap-2023.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_e80397de-69b6-42ed-8983-380b5f8f3151" xlink:to="loc_us-gaap_RestrictedStockMember_415c3c90-1bf0-479a-b568-23a9305cee14" xlink:type="arc" order="0"/>
  </link:definitionLink>
</link:linkbase>
