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

<!--XBRL Document Created with Wdesk from Workiva-->
<!--Copyright 2023 Workiva-->
<!--r:c6fd4368-bd33-4730-a957-a4dfb21df457,g:73b107e1-77fa-46e2-a854-75a494d1966f-->
<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-20230331.xsd#CondensedConsolidatedStatementsofStockholdersEquityDeficit"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/CondensedConsolidatedStatementsofStockholdersEquityDeficit" xlink:type="extended" id="i53b3482216fd426d84c825540b9f2f6b_CondensedConsolidatedStatementsofStockholdersEquityDeficit">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_c04d2737-3b01-4e57-a921-d87d09e64b54" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountingStandardsUpdateExtensibleList_28f97012-9c4d-4a99-b013-d6ba57de6737" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccountingStandardsUpdateExtensibleList"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c04d2737-3b01-4e57-a921-d87d09e64b54" xlink:to="loc_us-gaap_AccountingStandardsUpdateExtensibleList_28f97012-9c4d-4a99-b013-d6ba57de6737" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2bc743db-564f-4d62-b08c-12a2d82cfcce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_c04d2737-3b01-4e57-a921-d87d09e64b54" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2bc743db-564f-4d62-b08c-12a2d82cfcce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_6d414f7b-2647-4d69-868c-e3a2716077ac" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2bc743db-564f-4d62-b08c-12a2d82cfcce" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_6d414f7b-2647-4d69-868c-e3a2716077ac" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_e7cf6165-39c5-4468-b76c-ba25c139a067" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2bc743db-564f-4d62-b08c-12a2d82cfcce" xlink:to="loc_us-gaap_StockholdersEquity_e7cf6165-39c5-4468-b76c-ba25c139a067" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_501561f4-35fb-46ef-ae4d-cd5bf3b2067a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2bc743db-564f-4d62-b08c-12a2d82cfcce" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardNetOfForfeitures_501561f4-35fb-46ef-ae4d-cd5bf3b2067a" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures_ea4dd524-fb11-4347-aaf8-1a29e846656e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2bc743db-564f-4d62-b08c-12a2d82cfcce" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueRestrictedStockAwardNetOfForfeitures_ea4dd524-fb11-4347-aaf8-1a29e846656e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_23b08200-1804-48f9-bd07-413d49e9705b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TreasuryStockValueAcquiredCostMethod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2bc743db-564f-4d62-b08c-12a2d82cfcce" xlink:to="loc_us-gaap_TreasuryStockValueAcquiredCostMethod_23b08200-1804-48f9-bd07-413d49e9705b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_d3462466-dc41-42dd-a476-3c745a27176a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodSharesAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2bc743db-564f-4d62-b08c-12a2d82cfcce" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesAcquisitions_d3462466-dc41-42dd-a476-3c745a27176a" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_1c6b0f41-68eb-4676-aeb6-92dac85f4a98" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodValueAcquisitions"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2bc743db-564f-4d62-b08c-12a2d82cfcce" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueAcquisitions_1c6b0f41-68eb-4676-aeb6-92dac85f4a98" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_b0ee778c-0937-49c8-a5a5-015091af0639" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodSharesNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2bc743db-564f-4d62-b08c-12a2d82cfcce" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesNewIssues_b0ee778c-0937-49c8-a5a5-015091af0639" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_bf1c64e0-f757-459a-8b05-5fdb898567a8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2bc743db-564f-4d62-b08c-12a2d82cfcce" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueNewIssues_bf1c64e0-f757-459a-8b05-5fdb898567a8" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_800c208f-4ea4-4947-8fe3-56231c85ebd9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_2bc743db-564f-4d62-b08c-12a2d82cfcce" xlink:to="loc_us-gaap_NetIncomeLoss_800c208f-4ea4-4947-8fe3-56231c85ebd9" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_2315fbf8-d7d2-4def-851f-d83b01303f42" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_b3e11c66-9034-46b6-9b8d-e079245fc9dc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_114032f9-1f00-41e6-9a51-fbecf59d9332" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_c04d2737-3b01-4e57-a921-d87d09e64b54" xlink:to="loc_us-gaap_StatementTable_114032f9-1f00-41e6-9a51-fbecf59d9332" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_17fb86b5-3a0d-4b67-84d2-223de79ecd7c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_114032f9-1f00-41e6-9a51-fbecf59d9332" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_17fb86b5-3a0d-4b67-84d2-223de79ecd7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_17fb86b5-3a0d-4b67-84d2-223de79ecd7c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_17fb86b5-3a0d-4b67-84d2-223de79ecd7c" xlink:to="loc_us-gaap_EquityComponentDomain_17fb86b5-3a0d-4b67-84d2-223de79ecd7c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_321801c0-1581-4670-b39a-d5fe82d4eb55" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_17fb86b5-3a0d-4b67-84d2-223de79ecd7c" xlink:to="loc_us-gaap_EquityComponentDomain_321801c0-1581-4670-b39a-d5fe82d4eb55" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_ddb45615-8bcc-47f5-a713-227e914ff60c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_321801c0-1581-4670-b39a-d5fe82d4eb55" xlink:to="loc_us-gaap_CommonStockMember_ddb45615-8bcc-47f5-a713-227e914ff60c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_c257858d-90ae-4721-b580-dc41b84999ae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_321801c0-1581-4670-b39a-d5fe82d4eb55" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_c257858d-90ae-4721-b580-dc41b84999ae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TreasuryStockCommonMember_d490813e-76e5-4ba6-844a-12af17cdadff" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_TreasuryStockCommonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_321801c0-1581-4670-b39a-d5fe82d4eb55" xlink:to="loc_us-gaap_TreasuryStockCommonMember_d490813e-76e5-4ba6-844a-12af17cdadff" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_26e912e3-8bb0-43be-94a7-3beb81b6c2f8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_321801c0-1581-4670-b39a-d5fe82d4eb55" xlink:to="loc_us-gaap_RetainedEarningsMember_26e912e3-8bb0-43be-94a7-3beb81b6c2f8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_953f6ed0-fc51-4359-bfaa-d60a64d15ef8" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_114032f9-1f00-41e6-9a51-fbecf59d9332" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_953f6ed0-fc51-4359-bfaa-d60a64d15ef8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_953f6ed0-fc51-4359-bfaa-d60a64d15ef8_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_953f6ed0-fc51-4359-bfaa-d60a64d15ef8" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_953f6ed0-fc51-4359-bfaa-d60a64d15ef8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_087d1ce4-cb70-421f-9d88-92a0475b88f0" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionAxis_953f6ed0-fc51-4359-bfaa-d60a64d15ef8" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_087d1ce4-cb70-421f-9d88-92a0475b88f0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_3ccae9af-2ae5-4154-8776-c0511772ac4a" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_CumulativeEffectPeriodOfAdoptionDomain_087d1ce4-cb70-421f-9d88-92a0475b88f0" xlink:to="loc_srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember_3ccae9af-2ae5-4154-8776-c0511772ac4a" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/DescriptionofBusinessandBasisofPresentationDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#DescriptionofBusinessandBasisofPresentationDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/DescriptionofBusinessandBasisofPresentationDetails" xlink:type="extended" id="i432505d17fed4b709a58061c61d15f4b_DescriptionofBusinessandBasisofPresentationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_e897be2e-e23c-4779-871b-43b0f585aa05" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_NumberOfServiceFacilities_163e752f-f9a0-4c66-a844-16e545e58096" xlink:href="klxe-20230331.xsd#klxe_NumberOfServiceFacilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_e897be2e-e23c-4779-871b-43b0f585aa05" xlink:to="loc_klxe_NumberOfServiceFacilities_163e752f-f9a0-4c66-a844-16e545e58096" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_19f7901c-9f42-4000-a26b-90974b8ac40a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_e897be2e-e23c-4779-871b-43b0f585aa05" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_19f7901c-9f42-4000-a26b-90974b8ac40a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_d4718626-51a0-471d-a62b-f5a9abce9c18" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleLineItems_e897be2e-e23c-4779-871b-43b0f585aa05" xlink:to="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_d4718626-51a0-471d-a62b-f5a9abce9c18" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_ce7fbfec-5dce-4d05-88c0-0624c25cdfdb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_NewAccountingPronouncementsOrChangeInAccountingPrincipleTable_d4718626-51a0-471d-a62b-f5a9abce9c18" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_ce7fbfec-5dce-4d05-88c0-0624c25cdfdb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ce7fbfec-5dce-4d05-88c0-0624c25cdfdb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_ce7fbfec-5dce-4d05-88c0-0624c25cdfdb" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_ce7fbfec-5dce-4d05-88c0-0624c25cdfdb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5d8481fa-df95-41b3-8270-7c529502ea7f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_ce7fbfec-5dce-4d05-88c0-0624c25cdfdb" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5d8481fa-df95-41b3-8270-7c529502ea7f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_GreenesEnergyGroupLLCMember_8b8e7f18-e99b-4d58-a9fb-e1e0c0886f8c" xlink:href="klxe-20230331.xsd#klxe_GreenesEnergyGroupLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5d8481fa-df95-41b3-8270-7c529502ea7f" xlink:to="loc_klxe_GreenesEnergyGroupLLCMember_8b8e7f18-e99b-4d58-a9fb-e1e0c0886f8c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/BusinessCombinationsAdditionalInformationDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#BusinessCombinationsAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/BusinessCombinationsAdditionalInformationDetails" xlink:type="extended" id="i7a748fbe670c435695dc4d626c4a8d17_BusinessCombinationsAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_12b6134d-b13e-4464-ba94-9e29df737a04" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_20bb5f65-89e7-4119-a7fc-ff97cb7b0914" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_12b6134d-b13e-4464-ba94-9e29df737a04" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_20bb5f65-89e7-4119-a7fc-ff97cb7b0914" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_e884210c-ad29-4fcf-9214-66e0eb8119b1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_12b6134d-b13e-4464-ba94-9e29df737a04" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_e884210c-ad29-4fcf-9214-66e0eb8119b1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_807a29da-16f3-4982-9ac0-c94100b51ae3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_12b6134d-b13e-4464-ba94-9e29df737a04" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_807a29da-16f3-4982-9ac0-c94100b51ae3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_d02a6eac-7d0c-4946-aea0-50e039922ae6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_12b6134d-b13e-4464-ba94-9e29df737a04" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestIssuedOrIssuableValueAssigned_d02a6eac-7d0c-4946-aea0-50e039922ae6" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_BusinessAcquisitionPotentialPostClosingAdjustmentsPercentageOfFullyDilutedOutstandingCommonStock_acc519b2-7d5f-4854-be35-48c4e6be2929" xlink:href="klxe-20230331.xsd#klxe_BusinessAcquisitionPotentialPostClosingAdjustmentsPercentageOfFullyDilutedOutstandingCommonStock"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_12b6134d-b13e-4464-ba94-9e29df737a04" xlink:to="loc_klxe_BusinessAcquisitionPotentialPostClosingAdjustmentsPercentageOfFullyDilutedOutstandingCommonStock_acc519b2-7d5f-4854-be35-48c4e6be2929" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_83d70df5-f7f2-4ab6-b828-94c550f9310b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_12b6134d-b13e-4464-ba94-9e29df737a04" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationRevenueOfAcquireeSinceAcquisitionDateActual_83d70df5-f7f2-4ab6-b828-94c550f9310b" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_271a72a0-2d95-4ffe-a24d-faf16366e3c3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_12b6134d-b13e-4464-ba94-9e29df737a04" xlink:to="loc_us-gaap_BusinessCombinationProFormaInformationEarningsOrLossOfAcquireeSinceAcquisitionDateActual_271a72a0-2d95-4ffe-a24d-faf16366e3c3" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01809f80-1a08-4e3d-91e0-9d9a3da663e6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_12b6134d-b13e-4464-ba94-9e29df737a04" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01809f80-1a08-4e3d-91e0-9d9a3da663e6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_8f754e11-c966-474a-aa84-c1e6b56abacd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_01809f80-1a08-4e3d-91e0-9d9a3da663e6" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_8f754e11-c966-474a-aa84-c1e6b56abacd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_8f754e11-c966-474a-aa84-c1e6b56abacd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8f754e11-c966-474a-aa84-c1e6b56abacd" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_8f754e11-c966-474a-aa84-c1e6b56abacd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6e906106-e98a-4fee-bf96-f9e1d4b44d1b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_8f754e11-c966-474a-aa84-c1e6b56abacd" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6e906106-e98a-4fee-bf96-f9e1d4b44d1b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_GreenesEnergyGroupLLCMember_cc60008c-2473-42d9-a773-639a5a44cf51" xlink:href="klxe-20230331.xsd#klxe_GreenesEnergyGroupLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_6e906106-e98a-4fee-bf96-f9e1d4b44d1b" xlink:to="loc_klxe_GreenesEnergyGroupLLCMember_cc60008c-2473-42d9-a773-639a5a44cf51" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/BusinessCombinationsScheduleofFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#BusinessCombinationsScheduleofFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/BusinessCombinationsScheduleofFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails" xlink:type="extended" id="i05805bcc89bb47de90713547818bf407_BusinessCombinationsScheduleofFairValuesofAssetsAcquiredandLiabilitiesAssumedDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_80eb6d71-637b-4c0f-a20b-0aea1069a9fd" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_0e764b6b-51fb-45d9-ac22-646ef1f16066" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_80eb6d71-637b-4c0f-a20b-0aea1069a9fd" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashAndEquivalents_0e764b6b-51fb-45d9-ac22-646ef1f16066" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_80e07079-fde0-41fa-98dd-48617181f710" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_80eb6d71-637b-4c0f-a20b-0aea1069a9fd" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentAssetsReceivables_80e07079-fde0-41fa-98dd-48617181f710" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets_43425722-fb2a-46fb-9162-7ee81399c817" xlink:href="klxe-20230331.xsd#klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_80eb6d71-637b-4c0f-a20b-0aea1069a9fd" xlink:to="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets_43425722-fb2a-46fb-9162-7ee81399c817" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_2201e2f0-59f8-4224-abac-a3be63986dfa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_80eb6d71-637b-4c0f-a20b-0aea1069a9fd" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedPropertyPlantAndEquipment_2201e2f0-59f8-4224-abac-a3be63986dfa" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_ffd9c825-d6fc-451e-aa6b-fc9fc16a1c3d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_80eb6d71-637b-4c0f-a20b-0aea1069a9fd" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCurrentLiabilitiesAccountsPayable_ffd9c825-d6fc-451e-aa6b-fc9fc16a1c3d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedLiabilities_e2949d18-3500-4a7f-8689-17592ee435ac" xlink:href="klxe-20230331.xsd#klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_80eb6d71-637b-4c0f-a20b-0aea1069a9fd" xlink:to="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedAccruedLiabilities_e2949d18-3500-4a7f-8689-17592ee435ac" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities_c593679b-fc7d-42e4-a171-a6c207c72755" xlink:href="klxe-20230331.xsd#klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_80eb6d71-637b-4c0f-a20b-0aea1069a9fd" xlink:to="loc_klxe_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities_c593679b-fc7d-42e4-a171-a6c207c72755" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_a13b85ab-e1bb-4dd1-8eb0-d1f3df4f05cf" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_80eb6d71-637b-4c0f-a20b-0aea1069a9fd" xlink:to="loc_us-gaap_BusinessCombinationBargainPurchaseGainRecognizedAmount_a13b85ab-e1bb-4dd1-8eb0-d1f3df4f05cf" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_f8b8a2cf-d39e-4ba6-8126-f59733aa440d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_80eb6d71-637b-4c0f-a20b-0aea1069a9fd" xlink:to="loc_us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet_f8b8a2cf-d39e-4ba6-8126-f59733aa440d" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessCombinationConsiderationTransferred1_fae582e3-2525-4793-aec8-65efe5fec8d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessCombinationConsiderationTransferred1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_80eb6d71-637b-4c0f-a20b-0aea1069a9fd" xlink:to="loc_us-gaap_BusinessCombinationConsiderationTransferred1_fae582e3-2525-4793-aec8-65efe5fec8d6" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_89c333a7-fa16-49ca-9175-078c868b46e7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_80eb6d71-637b-4c0f-a20b-0aea1069a9fd" xlink:to="loc_us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued_89c333a7-fa16-49ca-9175-078c868b46e7" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_21a66569-4109-4693-af72-d4583d62727e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_80eb6d71-637b-4c0f-a20b-0aea1069a9fd" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_21a66569-4109-4693-af72-d4583d62727e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_5bc303b9-6823-4cd4-8924-626fea60ab61" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_21a66569-4109-4693-af72-d4583d62727e" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_5bc303b9-6823-4cd4-8924-626fea60ab61" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5bc303b9-6823-4cd4-8924-626fea60ab61_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_5bc303b9-6823-4cd4-8924-626fea60ab61" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_5bc303b9-6823-4cd4-8924-626fea60ab61_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_bcb2f425-3950-4155-b66a-cedd5a472ec2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_5bc303b9-6823-4cd4-8924-626fea60ab61" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_bcb2f425-3950-4155-b66a-cedd5a472ec2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_GreenesEnergyGroupLLCMember_5efe64a7-93e9-4a42-8a48-c3e01c7448d0" xlink:href="klxe-20230331.xsd#klxe_GreenesEnergyGroupLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_bcb2f425-3950-4155-b66a-cedd5a472ec2" xlink:to="loc_klxe_GreenesEnergyGroupLLCMember_5efe64a7-93e9-4a42-8a48-c3e01c7448d0" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/BusinessCombinationsProFormaInformationDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#BusinessCombinationsProFormaInformationDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/BusinessCombinationsProFormaInformationDetails" xlink:type="extended" id="i09244fda5b4349c998a7aa56d71e7cf3_BusinessCombinationsProFormaInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionLineItems_22c58ec1-02b3-4400-8f99-8eb18b9f57d2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_3cc3f672-ac4d-47f8-8843-9827cd7a4a04" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionsProFormaRevenue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_22c58ec1-02b3-4400-8f99-8eb18b9f57d2" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaRevenue_3cc3f672-ac4d-47f8-8843-9827cd7a4a04" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_6114475c-5de2-4b01-af70-02608afc766b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_22c58ec1-02b3-4400-8f99-8eb18b9f57d2" xlink:to="loc_us-gaap_BusinessAcquisitionsProFormaNetIncomeLoss_6114475c-5de2-4b01-af70-02608afc766b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_a687de6b-a418-4e1c-943b-b21043cf0015" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_BusinessAcquisitionLineItems_22c58ec1-02b3-4400-8f99-8eb18b9f57d2" xlink:to="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_a687de6b-a418-4e1c-943b-b21043cf0015" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAxis_4bc04d45-54fb-420e-84e1-ade79f069c91" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable_a687de6b-a418-4e1c-943b-b21043cf0015" xlink:to="loc_us-gaap_BusinessAcquisitionAxis_4bc04d45-54fb-420e-84e1-ade79f069c91" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4bc04d45-54fb-420e-84e1-ade79f069c91_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_4bc04d45-54fb-420e-84e1-ade79f069c91" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4bc04d45-54fb-420e-84e1-ade79f069c91_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4b83dcb8-949b-4d3b-9a94-cc0185455ccb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_BusinessAcquisitionAcquireeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BusinessAcquisitionAxis_4bc04d45-54fb-420e-84e1-ade79f069c91" xlink:to="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4b83dcb8-949b-4d3b-9a94-cc0185455ccb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_GreenesEnergyGroupLLCMember_3e9c7a3a-8158-4e81-af75-3cfc679bc027" xlink:href="klxe-20230331.xsd#klxe_GreenesEnergyGroupLLCMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BusinessAcquisitionAcquireeDomain_4b83dcb8-949b-4d3b-9a94-cc0185455ccb" xlink:to="loc_klxe_GreenesEnergyGroupLLCMember_3e9c7a3a-8158-4e81-af75-3cfc679bc027" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/PropertyandEquipmentNetPropertyandEquipmentDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#PropertyandEquipmentNetPropertyandEquipmentDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/PropertyandEquipmentNetPropertyandEquipmentDetails" xlink:type="extended" id="i05cd6393a6ca495b9b5969cd7c712b26_PropertyandEquipmentNetPropertyandEquipmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_2a398a50-6e17-4a86-b906-4faeafedcc2c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_eb3c08bc-a42e-4ec4-b0a3-a8f8ff1e93ca" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_2a398a50-6e17-4a86-b906-4faeafedcc2c" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_eb3c08bc-a42e-4ec4-b0a3-a8f8ff1e93ca" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentGross_9c3f03fc-a2ec-48d1-b106-9116e07c21ab" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_2a398a50-6e17-4a86-b906-4faeafedcc2c" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentGross_9c3f03fc-a2ec-48d1-b106-9116e07c21ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_6a43d88b-599f-4da0-9719-ff4026266413" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_2a398a50-6e17-4a86-b906-4faeafedcc2c" xlink:to="loc_us-gaap_FinanceLeaseRightOfUseAssetBeforeAccumulatedAmortization_6a43d88b-599f-4da0-9719-ff4026266413" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_0e5ae143-ba4a-4f6d-a8af-d88e00097278" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_2a398a50-6e17-4a86-b906-4faeafedcc2c" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_0e5ae143-ba4a-4f6d-a8af-d88e00097278" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_b5a6f087-6ac6-4e70-b915-50ce8650c388" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_2a398a50-6e17-4a86-b906-4faeafedcc2c" xlink:to="loc_us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_b5a6f087-6ac6-4e70-b915-50ce8650c388" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_2c9a5467-a2dd-4fc7-b23a-e17f28e51155" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_2a398a50-6e17-4a86-b906-4faeafedcc2c" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_2c9a5467-a2dd-4fc7-b23a-e17f28e51155" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_e1610b96-6fa2-4cec-8f1f-ee479f3da4ae" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_2a398a50-6e17-4a86-b906-4faeafedcc2c" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_e1610b96-6fa2-4cec-8f1f-ee479f3da4ae" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_fb38356d-16f7-4091-b626-db63dad406fa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_e1610b96-6fa2-4cec-8f1f-ee479f3da4ae" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_fb38356d-16f7-4091-b626-db63dad406fa" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_fb38356d-16f7-4091-b626-db63dad406fa_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_fb38356d-16f7-4091-b626-db63dad406fa" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_fb38356d-16f7-4091-b626-db63dad406fa_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_21de7fd2-3992-4cc9-a42f-84a691d38b00" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_fb38356d-16f7-4091-b626-db63dad406fa" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_21de7fd2-3992-4cc9-a42f-84a691d38b00" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_DepreciablePropertyPlantAndEquipmentMember_2cec1e46-569c-4dc8-98f7-92a982c4bb23" xlink:href="klxe-20230331.xsd#klxe_DepreciablePropertyPlantAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_21de7fd2-3992-4cc9-a42f-84a691d38b00" xlink:to="loc_klxe_DepreciablePropertyPlantAndEquipmentMember_2cec1e46-569c-4dc8-98f7-92a982c4bb23" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LandBuildingsAndImprovementsMember_7a350177-67a8-4240-8519-bcb67710586a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LandBuildingsAndImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klxe_DepreciablePropertyPlantAndEquipmentMember_2cec1e46-569c-4dc8-98f7-92a982c4bb23" xlink:to="loc_us-gaap_LandBuildingsAndImprovementsMember_7a350177-67a8-4240-8519-bcb67710586a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_MachineryMember_e7ccc3f6-eba5-4f8b-a89a-fb22b20057d1" xlink:href="klxe-20230331.xsd#klxe_MachineryMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klxe_DepreciablePropertyPlantAndEquipmentMember_2cec1e46-569c-4dc8-98f7-92a982c4bb23" xlink:to="loc_klxe_MachineryMember_e7ccc3f6-eba5-4f8b-a89a-fb22b20057d1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_FurnitureAndEquipmentMember_948d88e3-7048-42fb-8735-f30263b6b399" xlink:href="klxe-20230331.xsd#klxe_FurnitureAndEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klxe_DepreciablePropertyPlantAndEquipmentMember_2cec1e46-569c-4dc8-98f7-92a982c4bb23" xlink:to="loc_klxe_FurnitureAndEquipmentMember_948d88e3-7048-42fb-8735-f30263b6b399" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_FinanceLeaseRightOfUseAssetsMember_2d24152e-a910-4302-9885-dd686587d8fc" xlink:href="klxe-20230331.xsd#klxe_FinanceLeaseRightOfUseAssetsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_klxe_DepreciablePropertyPlantAndEquipmentMember_2cec1e46-569c-4dc8-98f7-92a982c4bb23" xlink:to="loc_klxe_FinanceLeaseRightOfUseAssetsMember_2d24152e-a910-4302-9885-dd686587d8fc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConstructionInProgressMember_a071e0ca-2739-40a2-8f3f-522f655ca791" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ConstructionInProgressMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_21de7fd2-3992-4cc9-a42f-84a691d38b00" xlink:to="loc_us-gaap_ConstructionInProgressMember_a071e0ca-2739-40a2-8f3f-522f655ca791" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_c04e8dfa-c716-468d-b277-ec124fdec6df" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_e1610b96-6fa2-4cec-8f1f-ee479f3da4ae" xlink:to="loc_srt_RangeAxis_c04e8dfa-c716-468d-b277-ec124fdec6df" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_c04e8dfa-c716-468d-b277-ec124fdec6df_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_c04e8dfa-c716-468d-b277-ec124fdec6df" xlink:to="loc_srt_RangeMember_c04e8dfa-c716-468d-b277-ec124fdec6df_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_c0fcf29d-87d9-410b-a1b1-a4cc8908a3e1" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_c04e8dfa-c716-468d-b277-ec124fdec6df" xlink:to="loc_srt_RangeMember_c0fcf29d-87d9-410b-a1b1-a4cc8908a3e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_3bca01ee-d8ab-449a-ad73-03c63bd67ba9" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_c0fcf29d-87d9-410b-a1b1-a4cc8908a3e1" xlink:to="loc_srt_MinimumMember_3bca01ee-d8ab-449a-ad73-03c63bd67ba9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_daa164d3-604d-48e1-86ed-ee7afed243cf" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_c0fcf29d-87d9-410b-a1b1-a4cc8908a3e1" xlink:to="loc_srt_MaximumMember_daa164d3-604d-48e1-86ed-ee7afed243cf" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/LongTermDebtLongtermDebtDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#LongTermDebtLongtermDebtDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/LongTermDebtLongtermDebtDetails" xlink:type="extended" id="iae5b1b41475549ad9bde957f15bf81b4_LongTermDebtLongtermDebtDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_fc76d19a-1072-40be-aa9f-9933635ce6e9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_afda375b-a05d-45d9-a02f-5779032ac460" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_fc76d19a-1072-40be-aa9f-9933635ce6e9" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_afda375b-a05d-45d9-a02f-5779032ac460" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_ef6ef1c7-e67d-4b98-9e08-d0825cbdbe2a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_fc76d19a-1072-40be-aa9f-9933635ce6e9" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_ef6ef1c7-e67d-4b98-9e08-d0825cbdbe2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_7ef07e27-e396-4c56-a325-c10334d5c9ce" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_fc76d19a-1072-40be-aa9f-9933635ce6e9" xlink:to="loc_us-gaap_LongTermDebt_7ef07e27-e396-4c56-a325-c10334d5c9ce" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_b553cd05-4298-4560-afa2-d61d47842438" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_fc76d19a-1072-40be-aa9f-9933635ce6e9" xlink:to="loc_us-gaap_DebtInstrumentTable_b553cd05-4298-4560-afa2-d61d47842438" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_323d355c-5ac8-4902-b192-8797ac3822f1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_b553cd05-4298-4560-afa2-d61d47842438" xlink:to="loc_us-gaap_DebtInstrumentAxis_323d355c-5ac8-4902-b192-8797ac3822f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_323d355c-5ac8-4902-b192-8797ac3822f1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_323d355c-5ac8-4902-b192-8797ac3822f1" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_323d355c-5ac8-4902-b192-8797ac3822f1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_09eb882d-7246-4163-90d0-13827d7e457b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_323d355c-5ac8-4902-b192-8797ac3822f1" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_09eb882d-7246-4163-90d0-13827d7e457b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember_2e866045-b3f1-481d-ae02-4a2cf4809bf3" xlink:href="klxe-20230331.xsd#klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_09eb882d-7246-4163-90d0-13827d7e457b" xlink:to="loc_klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember_2e866045-b3f1-481d-ae02-4a2cf4809bf3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_AssetBasedRevolvingCreditFacilityMember_4c770c92-8427-4fc9-9f6e-903741a40411" xlink:href="klxe-20230331.xsd#klxe_AssetBasedRevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_09eb882d-7246-4163-90d0-13827d7e457b" xlink:to="loc_klxe_AssetBasedRevolvingCreditFacilityMember_4c770c92-8427-4fc9-9f6e-903741a40411" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/LongTermDebtAdditionalInformationDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#LongTermDebtAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/LongTermDebtAdditionalInformationDetails" xlink:type="extended" id="ic1cf161023a84cdd9896d3ffb812eb2b_LongTermDebtAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_37bb2122-4f40-4280-969a-119b3cecc5e3" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_37bb2122-4f40-4280-969a-119b3cecc5e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_1927aa3d-44ea-4df9-acfa-2fb3f84b8ecb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_1927aa3d-44ea-4df9-acfa-2fb3f84b8ecb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_fb39bb0b-1ebf-4011-87a8-43a7de4861bc" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_us-gaap_LongTermDebt_fb39bb0b-1ebf-4011-87a8-43a7de4861bc" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestPayableCurrent_59ccd261-c7ab-4c8c-b895-9c4dde43afa5" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_us-gaap_InterestPayableCurrent_59ccd261-c7ab-4c8c-b895-9c4dde43afa5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_42cfca3c-0ef1-44dd-92d4-f7b709fc5a90" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_42cfca3c-0ef1-44dd-92d4-f7b709fc5a90" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_DebtInstrumentBasisSpreadOnVariableRateIncrease_d9b19928-d3fa-475e-9c4f-a0673d17bc23" xlink:href="klxe-20230331.xsd#klxe_DebtInstrumentBasisSpreadOnVariableRateIncrease"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_klxe_DebtInstrumentBasisSpreadOnVariableRateIncrease_d9b19928-d3fa-475e-9c4f-a0673d17bc23" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_DebtInstrumentCovenantExcessCashMaximum_4107bc66-059f-4368-aeca-fc2dc6d19a32" xlink:href="klxe-20230331.xsd#klxe_DebtInstrumentCovenantExcessCashMaximum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_klxe_DebtInstrumentCovenantExcessCashMaximum_4107bc66-059f-4368-aeca-fc2dc6d19a32" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_DebtInstrumentCovenantFixedChargeCoverageRatioMinimum_48dabd89-a886-4471-ad2d-8d1efead4735" xlink:href="klxe-20230331.xsd#klxe_DebtInstrumentCovenantFixedChargeCoverageRatioMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_klxe_DebtInstrumentCovenantFixedChargeCoverageRatioMinimum_48dabd89-a886-4471-ad2d-8d1efead4735" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_DebtInstrumentCovenantLiquidityThresholdAmount_8c62e454-4dc6-45f9-a4a3-1041836dc8a9" xlink:href="klxe-20230331.xsd#klxe_DebtInstrumentCovenantLiquidityThresholdAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_klxe_DebtInstrumentCovenantLiquidityThresholdAmount_8c62e454-4dc6-45f9-a4a3-1041836dc8a9" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_DebtInstrumentCovenantLiquidityThresholdPercentOfBorrowingBase_0a9e262d-121b-485b-9edc-2de97b80f06f" xlink:href="klxe-20230331.xsd#klxe_DebtInstrumentCovenantLiquidityThresholdPercentOfBorrowingBase"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_klxe_DebtInstrumentCovenantLiquidityThresholdPercentOfBorrowingBase_0a9e262d-121b-485b-9edc-2de97b80f06f" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_2a89f0e0-bd2d-4179-beeb-3d46a5566aef" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_us-gaap_LineOfCredit_2a89f0e0-bd2d-4179-beeb-3d46a5566aef" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LettersOfCreditOutstandingAmount_acd96e8f-0e06-4f5d-8f48-215337a14b7b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LettersOfCreditOutstandingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_us-gaap_LettersOfCreditOutstandingAmount_acd96e8f-0e06-4f5d-8f48-215337a14b7b" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_975a44e6-2f18-42c9-a80c-dc6fad3cf7ba" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_us-gaap_LineOfCreditFacilityCurrentBorrowingCapacity_975a44e6-2f18-42c9-a80c-dc6fad3cf7ba" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_93515f1b-5244-49c1-a5e3-2f240d67cef0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_6380e94d-5c0c-4aba-bcb9-7b33796c6309" xlink:to="loc_us-gaap_DebtInstrumentTable_93515f1b-5244-49c1-a5e3-2f240d67cef0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_0721c91c-8b18-4b3f-a335-d3854f7c635a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_93515f1b-5244-49c1-a5e3-2f240d67cef0" xlink:to="loc_us-gaap_DebtInstrumentAxis_0721c91c-8b18-4b3f-a335-d3854f7c635a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_0721c91c-8b18-4b3f-a335-d3854f7c635a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_0721c91c-8b18-4b3f-a335-d3854f7c635a" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_0721c91c-8b18-4b3f-a335-d3854f7c635a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_376b5a15-b476-4332-b02b-d056d86cc467" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_0721c91c-8b18-4b3f-a335-d3854f7c635a" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_376b5a15-b476-4332-b02b-d056d86cc467" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember_e8233796-1a36-4afa-b6a8-10befd47f502" xlink:href="klxe-20230331.xsd#klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_376b5a15-b476-4332-b02b-d056d86cc467" xlink:to="loc_klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember_e8233796-1a36-4afa-b6a8-10befd47f502" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_AssetBasedRevolvingCreditFacilityMember_5966800d-b2b2-43e7-806f-7a8b6509ffd9" xlink:href="klxe-20230331.xsd#klxe_AssetBasedRevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_376b5a15-b476-4332-b02b-d056d86cc467" xlink:to="loc_klxe_AssetBasedRevolvingCreditFacilityMember_5966800d-b2b2-43e7-806f-7a8b6509ffd9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_99f9b02a-3d53-4391-86db-efdb2913d376" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_93515f1b-5244-49c1-a5e3-2f240d67cef0" xlink:to="loc_us-gaap_CreditFacilityAxis_99f9b02a-3d53-4391-86db-efdb2913d376" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_99f9b02a-3d53-4391-86db-efdb2913d376_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_99f9b02a-3d53-4391-86db-efdb2913d376" xlink:to="loc_us-gaap_CreditFacilityDomain_99f9b02a-3d53-4391-86db-efdb2913d376_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_2c2c83f6-6350-4963-be2f-e4a740f8aea0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_99f9b02a-3d53-4391-86db-efdb2913d376" xlink:to="loc_us-gaap_CreditFacilityDomain_2c2c83f6-6350-4963-be2f-e4a740f8aea0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_f64f3c89-ba93-43aa-80be-9bc1ff10766e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_2c2c83f6-6350-4963-be2f-e4a740f8aea0" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_f64f3c89-ba93-43aa-80be-9bc1ff10766e" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/FairValueInformationAdditionalInformationDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#FairValueInformationAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/FairValueInformationAdditionalInformationDetails" xlink:type="extended" id="ia2b798f495f949db9d5ff33de4152017_FairValueInformationAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_1b45647e-e228-4238-a882-6d7bfe1b07d6" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_6df5b81f-a49d-46c5-b9b7-2c446ae39e02" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_1b45647e-e228-4238-a882-6d7bfe1b07d6" xlink:to="loc_us-gaap_LineOfCredit_6df5b81f-a49d-46c5-b9b7-2c446ae39e02" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnDispositionOfAssets1_bdb9a472-b158-4551-9919-c83c2837581f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainLossOnDispositionOfAssets1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_1b45647e-e228-4238-a882-6d7bfe1b07d6" xlink:to="loc_us-gaap_GainLossOnDispositionOfAssets1_bdb9a472-b158-4551-9919-c83c2837581f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_0fa82004-8417-4eae-a791-46e5cb55ff91" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_1b45647e-e228-4238-a882-6d7bfe1b07d6" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_0fa82004-8417-4eae-a791-46e5cb55ff91" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityAxis_9c7a8e74-f7bf-487d-9559-7799512a4841" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_0fa82004-8417-4eae-a791-46e5cb55ff91" xlink:to="loc_us-gaap_CreditFacilityAxis_9c7a8e74-f7bf-487d-9559-7799512a4841" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_9c7a8e74-f7bf-487d-9559-7799512a4841_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CreditFacilityAxis_9c7a8e74-f7bf-487d-9559-7799512a4841" xlink:to="loc_us-gaap_CreditFacilityDomain_9c7a8e74-f7bf-487d-9559-7799512a4841_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CreditFacilityDomain_67681276-0fb5-4918-a1a0-8d80b4b1b916" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CreditFacilityDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CreditFacilityAxis_9c7a8e74-f7bf-487d-9559-7799512a4841" xlink:to="loc_us-gaap_CreditFacilityDomain_67681276-0fb5-4918-a1a0-8d80b4b1b916" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevolvingCreditFacilityMember_f7b405d7-df5a-40dd-81bc-875f1fbf7793" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_CreditFacilityDomain_67681276-0fb5-4918-a1a0-8d80b4b1b916" xlink:to="loc_us-gaap_RevolvingCreditFacilityMember_f7b405d7-df5a-40dd-81bc-875f1fbf7793" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_7aab776f-9262-48d2-a68e-2e5ca6ddee2c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_0fa82004-8417-4eae-a791-46e5cb55ff91" xlink:to="loc_us-gaap_DebtInstrumentAxis_7aab776f-9262-48d2-a68e-2e5ca6ddee2c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_7aab776f-9262-48d2-a68e-2e5ca6ddee2c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_7aab776f-9262-48d2-a68e-2e5ca6ddee2c" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_7aab776f-9262-48d2-a68e-2e5ca6ddee2c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_72b2ad98-b8e5-462e-aab2-62433cfa7821" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_7aab776f-9262-48d2-a68e-2e5ca6ddee2c" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_72b2ad98-b8e5-462e-aab2-62433cfa7821" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_AssetBasedRevolvingCreditFacilityMember_fc20dd0d-71e9-4f09-972d-82bc8f2d6262" xlink:href="klxe-20230331.xsd#klxe_AssetBasedRevolvingCreditFacilityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_72b2ad98-b8e5-462e-aab2-62433cfa7821" xlink:to="loc_klxe_AssetBasedRevolvingCreditFacilityMember_fc20dd0d-71e9-4f09-972d-82bc8f2d6262" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/FairValueInformationSeniorSecuredNotesandAssetsHeldforSaleDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#FairValueInformationSeniorSecuredNotesandAssetsHeldforSaleDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/FairValueInformationSeniorSecuredNotesandAssetsHeldforSaleDetails" xlink:type="extended" id="i5b24b1e1b10a4e2088f8a61706b1651e_FairValueInformationSeniorSecuredNotesandAssetsHeldforSaleDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_83363ab5-56aa-45c2-b45c-73ec34a95fc0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_a6a83c7a-6933-43c7-a51f-1b9ef9f4ec04" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_83363ab5-56aa-45c2-b45c-73ec34a95fc0" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_a6a83c7a-6933-43c7-a51f-1b9ef9f4ec04" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_8fa1986c-3db1-42d5-af79-3840d9442e02" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_83363ab5-56aa-45c2-b45c-73ec34a95fc0" xlink:to="loc_us-gaap_LongTermDebtFairValue_8fa1986c-3db1-42d5-af79-3840d9442e02" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure_9b7bd0bc-fe96-4166-a7d6-c37da62f9d82" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_83363ab5-56aa-45c2-b45c-73ec34a95fc0" xlink:to="loc_us-gaap_AssetsHeldForSaleLongLivedFairValueDisclosure_9b7bd0bc-fe96-4166-a7d6-c37da62f9d82" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByBalanceSheetGroupingTable_85eaa9ff-b9fc-48d4-a597-7ffdb170de25" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByBalanceSheetGroupingTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueBalanceSheetGroupingFinancialStatementCaptionsLineItems_83363ab5-56aa-45c2-b45c-73ec34a95fc0" xlink:to="loc_us-gaap_FairValueByBalanceSheetGroupingTable_85eaa9ff-b9fc-48d4-a597-7ffdb170de25" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_35b1cd12-feb7-48ec-9a30-ebb45373fb2c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_85eaa9ff-b9fc-48d4-a597-7ffdb170de25" xlink:to="loc_us-gaap_DebtInstrumentAxis_35b1cd12-feb7-48ec-9a30-ebb45373fb2c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_35b1cd12-feb7-48ec-9a30-ebb45373fb2c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_35b1cd12-feb7-48ec-9a30-ebb45373fb2c" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_35b1cd12-feb7-48ec-9a30-ebb45373fb2c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_10f66109-f2b9-4c60-b1ae-ddc74546670e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_35b1cd12-feb7-48ec-9a30-ebb45373fb2c" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_10f66109-f2b9-4c60-b1ae-ddc74546670e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember_6c1e7fdf-3b51-41d5-aee0-cd9791fbdfdf" xlink:href="klxe-20230331.xsd#klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_10f66109-f2b9-4c60-b1ae-ddc74546670e" xlink:to="loc_klxe_SeniorSecuredNotesElevenPointFivePercentDueTwentyTwentyFiveMember_6c1e7fdf-3b51-41d5-aee0-cd9791fbdfdf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_23ec5efb-2707-4c1c-9b5c-d9ed9424681c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_85eaa9ff-b9fc-48d4-a597-7ffdb170de25" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_23ec5efb-2707-4c1c-9b5c-d9ed9424681c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_23ec5efb-2707-4c1c-9b5c-d9ed9424681c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_23ec5efb-2707-4c1c-9b5c-d9ed9424681c" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_23ec5efb-2707-4c1c-9b5c-d9ed9424681c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_76024570-665b-452b-823a-cd16ba452753" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_23ec5efb-2707-4c1c-9b5c-d9ed9424681c" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_76024570-665b-452b-823a-cd16ba452753" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_252c732c-33e2-4892-b4a4-ef59d2e2cfea" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_76024570-665b-452b-823a-cd16ba452753" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_252c732c-33e2-4892-b4a4-ef59d2e2cfea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_06e4e033-a3f2-4f4d-a7bf-3b81488ed855" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_76024570-665b-452b-823a-cd16ba452753" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_06e4e033-a3f2-4f4d-a7bf-3b81488ed855" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_23694399-a0d6-492f-99c3-2adb1898b095" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueInputsLevel3Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_76024570-665b-452b-823a-cd16ba452753" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_23694399-a0d6-492f-99c3-2adb1898b095" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_a03ff567-619c-4cfe-aedb-17627dfcd814" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueByMeasurementFrequencyAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueByBalanceSheetGroupingTable_85eaa9ff-b9fc-48d4-a597-7ffdb170de25" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_a03ff567-619c-4cfe-aedb-17627dfcd814" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_a03ff567-619c-4cfe-aedb-17627dfcd814_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_a03ff567-619c-4cfe-aedb-17627dfcd814" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_a03ff567-619c-4cfe-aedb-17627dfcd814_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_79d7c84b-062a-45c4-abda-a11a796581e2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementFrequencyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_a03ff567-619c-4cfe-aedb-17627dfcd814" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_79d7c84b-062a-45c4-abda-a11a796581e2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsRecurringMember_c1aa0c64-5ce0-4db6-9f8b-a3db489f8e03" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_FairValueMeasurementsRecurringMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementFrequencyDomain_79d7c84b-062a-45c4-abda-a11a796581e2" xlink:to="loc_us-gaap_FairValueMeasurementsRecurringMember_c1aa0c64-5ce0-4db6-9f8b-a3db489f8e03" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/CommitmentsContingenciesandOffBalanceSheetArrangementsDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#CommitmentsContingenciesandOffBalanceSheetArrangementsDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/CommitmentsContingenciesandOffBalanceSheetArrangementsDetails" xlink:type="extended" id="i8192123487344b0b8d7ed9771f30b9fe_CommitmentsContingenciesandOffBalanceSheetArrangementsDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesLineItems_686490ea-bdd6-4961-9179-b5a7cfae25f2" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LossContingenciesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainContingencyUnrecordedAmount_05b7f957-1b1e-4087-9729-293c6267fb41" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainContingencyUnrecordedAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LossContingenciesLineItems_686490ea-bdd6-4961-9179-b5a7cfae25f2" xlink:to="loc_us-gaap_GainContingencyUnrecordedAmount_05b7f957-1b1e-4087-9729-293c6267fb41" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LossContingenciesTable_78ed465a-8c2b-41e2-aade-974dc7d9a287" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_LossContingenciesTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LossContingenciesLineItems_686490ea-bdd6-4961-9179-b5a7cfae25f2" xlink:to="loc_us-gaap_LossContingenciesTable_78ed465a-8c2b-41e2-aade-974dc7d9a287" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainContingenciesByNatureAxis_737953db-27b7-4161-9ebf-d08b3019c20f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainContingenciesByNatureAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LossContingenciesTable_78ed465a-8c2b-41e2-aade-974dc7d9a287" xlink:to="loc_us-gaap_GainContingenciesByNatureAxis_737953db-27b7-4161-9ebf-d08b3019c20f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainContingencyNatureDomain_737953db-27b7-4161-9ebf-d08b3019c20f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_GainContingenciesByNatureAxis_737953db-27b7-4161-9ebf-d08b3019c20f" xlink:to="loc_us-gaap_GainContingencyNatureDomain_737953db-27b7-4161-9ebf-d08b3019c20f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainContingencyNatureDomain_3157fdac-6b05-4e21-8727-c3d88d3c1e7d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_GainContingencyNatureDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_GainContingenciesByNatureAxis_737953db-27b7-4161-9ebf-d08b3019c20f" xlink:to="loc_us-gaap_GainContingencyNatureDomain_3157fdac-6b05-4e21-8727-c3d88d3c1e7d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PositiveOutcomeOfLitigationMember_8ea379d5-d854-4231-a545-8b2f5516718c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PositiveOutcomeOfLitigationMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_GainContingencyNatureDomain_3157fdac-6b05-4e21-8727-c3d88d3c1e7d" xlink:to="loc_us-gaap_PositiveOutcomeOfLitigationMember_8ea379d5-d854-4231-a545-8b2f5516718c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/StockholdersEquityDeficitDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#StockholdersEquityDeficitDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/StockholdersEquityDeficitDetails" xlink:type="extended" id="i006b410fd2d24d39bd88d86021f27417_StockholdersEquityDeficitDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f86c8223-ae9d-4acb-8531-c4dd52db6b9c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_c33e9ef0-3c0c-4974-9b57-1e88262baf58" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f86c8223-ae9d-4acb-8531-c4dd52db6b9c" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_c33e9ef0-3c0c-4974-9b57-1e88262baf58" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SaleOfStockMaximumConsiderationOnTransaction_dcb29f70-9c43-4ed9-8061-c65fb28d6dd4" xlink:href="klxe-20230331.xsd#klxe_SaleOfStockMaximumConsiderationOnTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f86c8223-ae9d-4acb-8531-c4dd52db6b9c" xlink:to="loc_klxe_SaleOfStockMaximumConsiderationOnTransaction_dcb29f70-9c43-4ed9-8061-c65fb28d6dd4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SaleOfStockCommissionFeePercentage_cd61668e-a67c-48dc-8099-9bf0982b7cba" xlink:href="klxe-20230331.xsd#klxe_SaleOfStockCommissionFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f86c8223-ae9d-4acb-8531-c4dd52db6b9c" xlink:to="loc_klxe_SaleOfStockCommissionFeePercentage_cd61668e-a67c-48dc-8099-9bf0982b7cba" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_70ca42fa-4d0a-4bf4-9539-2f83f5bb2392" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f86c8223-ae9d-4acb-8531-c4dd52db6b9c" xlink:to="loc_us-gaap_SaleOfStockNumberOfSharesIssuedInTransaction_70ca42fa-4d0a-4bf4-9539-2f83f5bb2392" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_5fe972f6-75c2-4dce-b044-871295f22c40" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SaleOfStockConsiderationReceivedOnTransaction"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f86c8223-ae9d-4acb-8531-c4dd52db6b9c" xlink:to="loc_us-gaap_SaleOfStockConsiderationReceivedOnTransaction_5fe972f6-75c2-4dce-b044-871295f22c40" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_b65f7df2-b13e-4e1d-ad67-d2e10a7019a1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsOfStockIssuanceCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f86c8223-ae9d-4acb-8531-c4dd52db6b9c" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_b65f7df2-b13e-4e1d-ad67-d2e10a7019a1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_a50761d7-e1ec-4e59-bba2-780adb739630" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_CommonStockCapitalSharesReservedForFutureIssuance"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f86c8223-ae9d-4acb-8531-c4dd52db6b9c" xlink:to="loc_us-gaap_CommonStockCapitalSharesReservedForFutureIssuance_a50761d7-e1ec-4e59-bba2-780adb739630" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_AllocatedShareBasedCompensationExpenseNetOfAdjustments_389003ae-1ceb-4dfe-8c82-8414c3f9bf62" xlink:href="klxe-20230331.xsd#klxe_AllocatedShareBasedCompensationExpenseNetOfAdjustments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f86c8223-ae9d-4acb-8531-c4dd52db6b9c" xlink:to="loc_klxe_AllocatedShareBasedCompensationExpenseNetOfAdjustments_389003ae-1ceb-4dfe-8c82-8414c3f9bf62" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_81141ee2-14c5-4375-ade2-4e83cd965f11" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f86c8223-ae9d-4acb-8531-c4dd52db6b9c" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_81141ee2-14c5-4375-ade2-4e83cd965f11" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ee82c0ee-5be2-425e-bd6b-2f9ae4541b31" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_f86c8223-ae9d-4acb-8531-c4dd52db6b9c" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ee82c0ee-5be2-425e-bd6b-2f9ae4541b31" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubsidiarySaleOfStockAxis_6d598b58-c99d-465c-93da-feb8d24ccbb7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SubsidiarySaleOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_ee82c0ee-5be2-425e-bd6b-2f9ae4541b31" xlink:to="loc_us-gaap_SubsidiarySaleOfStockAxis_6d598b58-c99d-465c-93da-feb8d24ccbb7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_6d598b58-c99d-465c-93da-feb8d24ccbb7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_6d598b58-c99d-465c-93da-feb8d24ccbb7" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_6d598b58-c99d-465c-93da-feb8d24ccbb7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SaleOfStockNameOfTransactionDomain_89a6a071-71d5-45d2-9de4-70df6af5fe83" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SaleOfStockNameOfTransactionDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_SubsidiarySaleOfStockAxis_6d598b58-c99d-465c-93da-feb8d24ccbb7" xlink:to="loc_us-gaap_SaleOfStockNameOfTransactionDomain_89a6a071-71d5-45d2-9de4-70df6af5fe83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_AtTheMarketOfferingMember_7f147d69-8621-4682-80eb-3fd8c9ffb675" xlink:href="klxe-20230331.xsd#klxe_AtTheMarketOfferingMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SaleOfStockNameOfTransactionDomain_89a6a071-71d5-45d2-9de4-70df6af5fe83" xlink:to="loc_klxe_AtTheMarketOfferingMember_7f147d69-8621-4682-80eb-3fd8c9ffb675" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/SegmentReportingRevenuesandOperatingIncomeLossbyReportableSegmentDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#SegmentReportingRevenuesandOperatingIncomeLossbyReportableSegmentDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/SegmentReportingRevenuesandOperatingIncomeLossbyReportableSegmentDetails" xlink:type="extended" id="i256bfcf939f34926b1a40ef18eca8ace_SegmentReportingRevenuesandOperatingIncomeLossbyReportableSegmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingRevenueReconcilingItemLineItems_6491819e-8f76-4243-bf38-b085577bc6f9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentReportingRevenueReconcilingItemLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_1c807317-6204-4152-85f3-cda899f184fa" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingRevenueReconcilingItemLineItems_6491819e-8f76-4243-bf38-b085577bc6f9" xlink:to="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_1c807317-6204-4152-85f3-cda899f184fa" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NumberOfReportableSegments_7c56990b-9481-4df8-ac6a-f23d994aa998" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_NumberOfReportableSegments"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_1c807317-6204-4152-85f3-cda899f184fa" xlink:to="loc_us-gaap_NumberOfReportableSegments_7c56990b-9481-4df8-ac6a-f23d994aa998" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1bdc6dbd-8f37-4a51-9581-4e5665555e0c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_1c807317-6204-4152-85f3-cda899f184fa" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_1bdc6dbd-8f37-4a51-9581-4e5665555e0c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingIncomeLoss_325c9b62-2516-4062-9e95-797fe138d8b8" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_1c807317-6204-4152-85f3-cda899f184fa" xlink:to="loc_us-gaap_OperatingIncomeLoss_325c9b62-2516-4062-9e95-797fe138d8b8" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_6f69bb49-4dbd-4777-aafd-fe631b2f5f0b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_InterestIncomeExpenseNonoperatingNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_1c807317-6204-4152-85f3-cda899f184fa" xlink:to="loc_us-gaap_InterestIncomeExpenseNonoperatingNet_6f69bb49-4dbd-4777-aafd-fe631b2f5f0b" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_bcbf0f36-6944-410f-bd26-20df862c1806" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingDisclosureOfEntitysReportableSegmentsAbstract_1c807317-6204-4152-85f3-cda899f184fa" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_bcbf0f36-6944-410f-bd26-20df862c1806" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable_df6e367c-69ca-4841-843b-6f1f7ff2121f" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingRevenueReconcilingItemLineItems_6491819e-8f76-4243-bf38-b085577bc6f9" xlink:to="loc_us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable_df6e367c-69ca-4841-843b-6f1f7ff2121f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_9c0bb9fa-9726-4e3c-a034-b3454f4dfec9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable_df6e367c-69ca-4841-843b-6f1f7ff2121f" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_9c0bb9fa-9726-4e3c-a034-b3454f4dfec9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_9c0bb9fa-9726-4e3c-a034-b3454f4dfec9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_9c0bb9fa-9726-4e3c-a034-b3454f4dfec9" xlink:to="loc_us-gaap_SegmentDomain_9c0bb9fa-9726-4e3c-a034-b3454f4dfec9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_8b92c6ec-ebb0-4c9f-8d81-c6f3ec23fd69" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_9c0bb9fa-9726-4e3c-a034-b3454f4dfec9" xlink:to="loc_us-gaap_SegmentDomain_8b92c6ec-ebb0-4c9f-8d81-c6f3ec23fd69" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_RockyMountainsMember_aaaf2f65-e80f-413a-aea1-8fb27527717b" xlink:href="klxe-20230331.xsd#klxe_RockyMountainsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8b92c6ec-ebb0-4c9f-8d81-c6f3ec23fd69" xlink:to="loc_klxe_RockyMountainsMember_aaaf2f65-e80f-413a-aea1-8fb27527717b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SouthwestMember_8a931793-1428-44e2-9d94-ce36c1cedaf2" xlink:href="klxe-20230331.xsd#klxe_SouthwestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8b92c6ec-ebb0-4c9f-8d81-c6f3ec23fd69" xlink:to="loc_klxe_SouthwestMember_8a931793-1428-44e2-9d94-ce36c1cedaf2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_NortheastMember_d820a630-2f24-4520-8583-3d6e1adedd41" xlink:href="klxe-20230331.xsd#klxe_NortheastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_8b92c6ec-ebb0-4c9f-8d81-c6f3ec23fd69" xlink:to="loc_klxe_NortheastMember_d820a630-2f24-4520-8583-3d6e1adedd41" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_c0886039-44e1-49c3-b62b-5e0dc4bab904" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReconciliationOfRevenueFromSegmentsToConsolidatedTable_df6e367c-69ca-4841-843b-6f1f7ff2121f" xlink:to="loc_srt_ConsolidationItemsAxis_c0886039-44e1-49c3-b62b-5e0dc4bab904" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_c0886039-44e1-49c3-b62b-5e0dc4bab904_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_c0886039-44e1-49c3-b62b-5e0dc4bab904" xlink:to="loc_srt_ConsolidationItemsDomain_c0886039-44e1-49c3-b62b-5e0dc4bab904_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_72bf3be7-ec0f-4a51-ae67-1d33f5c5f235" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_c0886039-44e1-49c3-b62b-5e0dc4bab904" xlink:to="loc_srt_ConsolidationItemsDomain_72bf3be7-ec0f-4a51-ae67-1d33f5c5f235" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_0e94dc6b-93cd-4738-bdc4-bf551242e041" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_72bf3be7-ec0f-4a51-ae67-1d33f5c5f235" xlink:to="loc_us-gaap_OperatingSegmentsMember_0e94dc6b-93cd-4738-bdc4-bf551242e041" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_CorporateAndReconcilingItemsMember_c50e1a28-8446-4dfd-957a-6e9e1471a7a4" xlink:href="klxe-20230331.xsd#klxe_CorporateAndReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_72bf3be7-ec0f-4a51-ae67-1d33f5c5f235" xlink:to="loc_klxe_CorporateAndReconcilingItemsMember_c50e1a28-8446-4dfd-957a-6e9e1471a7a4" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/SegmentReportingRevenuesbyServiceOfferingbyReportableSegmentDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#SegmentReportingRevenuesbyServiceOfferingbyReportableSegmentDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/SegmentReportingRevenuesbyServiceOfferingbyReportableSegmentDetails" xlink:type="extended" id="i229af94d9239435d99072525c09349da_SegmentReportingRevenuesbyServiceOfferingbyReportableSegmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingInformationLineItems_afa49853-37af-4ec9-b6ba-78fd05245b8b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentReportingInformationLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_ce3acd16-cdbe-447a-b9a7-31eb2f8ba0a7" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_afa49853-37af-4ec9-b6ba-78fd05245b8b" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax_ce3acd16-cdbe-447a-b9a7-31eb2f8ba0a7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_773238fc-2583-458c-b226-0886f69df2b9" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingInformationLineItems_afa49853-37af-4ec9-b6ba-78fd05245b8b" xlink:to="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_773238fc-2583-458c-b226-0886f69df2b9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_e21c3f91-8905-4cc5-ab3d-0a13f580485b" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_773238fc-2583-458c-b226-0886f69df2b9" xlink:to="loc_srt_ProductOrServiceAxis_e21c3f91-8905-4cc5-ab3d-0a13f580485b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_e21c3f91-8905-4cc5-ab3d-0a13f580485b_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_e21c3f91-8905-4cc5-ab3d-0a13f580485b" xlink:to="loc_srt_ProductsAndServicesDomain_e21c3f91-8905-4cc5-ab3d-0a13f580485b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_ccec2021-6628-466a-81c7-8b6cc87b4062" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_e21c3f91-8905-4cc5-ab3d-0a13f580485b" xlink:to="loc_srt_ProductsAndServicesDomain_ccec2021-6628-466a-81c7-8b6cc87b4062" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_DrillingRevenuesMember_48458dc2-195d-4b2b-8ce9-58c6da34e746" xlink:href="klxe-20230331.xsd#klxe_DrillingRevenuesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_ccec2021-6628-466a-81c7-8b6cc87b4062" xlink:to="loc_klxe_DrillingRevenuesMember_48458dc2-195d-4b2b-8ce9-58c6da34e746" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_CompletionRevenuesMember_c6e38792-c028-4f4f-9d0a-fc16b29e4b14" xlink:href="klxe-20230331.xsd#klxe_CompletionRevenuesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_ccec2021-6628-466a-81c7-8b6cc87b4062" xlink:to="loc_klxe_CompletionRevenuesMember_c6e38792-c028-4f4f-9d0a-fc16b29e4b14" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_ProductionRevenuesMember_b08ac8d1-ec64-458a-bc45-f5ae3b99a693" xlink:href="klxe-20230331.xsd#klxe_ProductionRevenuesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_ccec2021-6628-466a-81c7-8b6cc87b4062" xlink:to="loc_klxe_ProductionRevenuesMember_b08ac8d1-ec64-458a-bc45-f5ae3b99a693" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_InterventionRevenuesMember_257aed1c-538c-44ec-bfb8-36825e7ae97c" xlink:href="klxe-20230331.xsd#klxe_InterventionRevenuesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_ccec2021-6628-466a-81c7-8b6cc87b4062" xlink:to="loc_klxe_InterventionRevenuesMember_257aed1c-538c-44ec-bfb8-36825e7ae97c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_a483ccf7-d9bf-4b24-9c13-e3dea8e96c7c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable_773238fc-2583-458c-b226-0886f69df2b9" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_a483ccf7-d9bf-4b24-9c13-e3dea8e96c7c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_a483ccf7-d9bf-4b24-9c13-e3dea8e96c7c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a483ccf7-d9bf-4b24-9c13-e3dea8e96c7c" xlink:to="loc_us-gaap_SegmentDomain_a483ccf7-d9bf-4b24-9c13-e3dea8e96c7c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_9da34dc6-958e-4f33-89b2-2138f0e9f06b" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_a483ccf7-d9bf-4b24-9c13-e3dea8e96c7c" xlink:to="loc_us-gaap_SegmentDomain_9da34dc6-958e-4f33-89b2-2138f0e9f06b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_RockyMountainsMember_241c0606-25d4-4de2-8814-a61d0b11e878" xlink:href="klxe-20230331.xsd#klxe_RockyMountainsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9da34dc6-958e-4f33-89b2-2138f0e9f06b" xlink:to="loc_klxe_RockyMountainsMember_241c0606-25d4-4de2-8814-a61d0b11e878" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SouthwestMember_aba0f822-225f-4a83-aadf-d84595009936" xlink:href="klxe-20230331.xsd#klxe_SouthwestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9da34dc6-958e-4f33-89b2-2138f0e9f06b" xlink:to="loc_klxe_SouthwestMember_aba0f822-225f-4a83-aadf-d84595009936" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_NortheastMember_4b7b24a7-703b-4bdc-9c34-0e8b62d62912" xlink:href="klxe-20230331.xsd#klxe_NortheastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_9da34dc6-958e-4f33-89b2-2138f0e9f06b" xlink:to="loc_klxe_NortheastMember_4b7b24a7-703b-4bdc-9c34-0e8b62d62912" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/SegmentReportingCapitalExpendituresbyReportableSegmentDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#SegmentReportingCapitalExpendituresbyReportableSegmentDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/SegmentReportingCapitalExpendituresbyReportableSegmentDetails" xlink:type="extended" id="idfd3def1022c4a1cbd6917b5bf0f80d1_SegmentReportingCapitalExpendituresbyReportableSegmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7649e0d0-4d04-4c3c-894d-ae0400383813" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0d74e066-ace2-4685-ab17-d8e538e65d66" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7649e0d0-4d04-4c3c-894d-ae0400383813" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_0d74e066-ace2-4685-ab17-d8e538e65d66" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_f5da8eff-8450-47b2-bc2e-3cc9198779eb" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_7649e0d0-4d04-4c3c-894d-ae0400383813" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_f5da8eff-8450-47b2-bc2e-3cc9198779eb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_0f6eab55-e656-4f2c-bfc5-a4c9c85fdc7c" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_f5da8eff-8450-47b2-bc2e-3cc9198779eb" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_0f6eab55-e656-4f2c-bfc5-a4c9c85fdc7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_0f6eab55-e656-4f2c-bfc5-a4c9c85fdc7c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0f6eab55-e656-4f2c-bfc5-a4c9c85fdc7c" xlink:to="loc_us-gaap_SegmentDomain_0f6eab55-e656-4f2c-bfc5-a4c9c85fdc7c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_fd73ddfb-4386-43cf-9499-127771c228c1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_0f6eab55-e656-4f2c-bfc5-a4c9c85fdc7c" xlink:to="loc_us-gaap_SegmentDomain_fd73ddfb-4386-43cf-9499-127771c228c1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_RockyMountainsMember_97e48441-5efc-4ece-8265-f96becc6a870" xlink:href="klxe-20230331.xsd#klxe_RockyMountainsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_fd73ddfb-4386-43cf-9499-127771c228c1" xlink:to="loc_klxe_RockyMountainsMember_97e48441-5efc-4ece-8265-f96becc6a870" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SouthwestMember_cd520816-9356-4c39-9465-67894e2c7b74" xlink:href="klxe-20230331.xsd#klxe_SouthwestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_fd73ddfb-4386-43cf-9499-127771c228c1" xlink:to="loc_klxe_SouthwestMember_cd520816-9356-4c39-9465-67894e2c7b74" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_NortheastMember_de78ee6d-cdb5-4c52-87ca-44a1c2393527" xlink:href="klxe-20230331.xsd#klxe_NortheastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_fd73ddfb-4386-43cf-9499-127771c228c1" xlink:to="loc_klxe_NortheastMember_de78ee6d-cdb5-4c52-87ca-44a1c2393527" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_f99b12b4-3041-4fe0-a9b2-5539fd2d930a" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_f5da8eff-8450-47b2-bc2e-3cc9198779eb" xlink:to="loc_srt_ConsolidationItemsAxis_f99b12b4-3041-4fe0-a9b2-5539fd2d930a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_f99b12b4-3041-4fe0-a9b2-5539fd2d930a_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_f99b12b4-3041-4fe0-a9b2-5539fd2d930a" xlink:to="loc_srt_ConsolidationItemsDomain_f99b12b4-3041-4fe0-a9b2-5539fd2d930a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_4aa7bace-5830-45bf-8cc2-42c1ccb6d1f9" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_f99b12b4-3041-4fe0-a9b2-5539fd2d930a" xlink:to="loc_srt_ConsolidationItemsDomain_4aa7bace-5830-45bf-8cc2-42c1ccb6d1f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_1f307654-6cca-44fa-9019-9a5df9d7a4a4" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_4aa7bace-5830-45bf-8cc2-42c1ccb6d1f9" xlink:to="loc_us-gaap_OperatingSegmentsMember_1f307654-6cca-44fa-9019-9a5df9d7a4a4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_CorporateAndReconcilingItemsMember_579b9c0f-0cbd-4643-b6ba-09bce627924a" xlink:href="klxe-20230331.xsd#klxe_CorporateAndReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_4aa7bace-5830-45bf-8cc2-42c1ccb6d1f9" xlink:to="loc_klxe_CorporateAndReconcilingItemsMember_579b9c0f-0cbd-4643-b6ba-09bce627924a" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/SegmentReportingTotalAssetsbyReportableSegmentDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#SegmentReportingTotalAssetsbyReportableSegmentDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/SegmentReportingTotalAssetsbyReportableSegmentDetails" xlink:type="extended" id="i5fc42fdc3c5341e8a5f5647be267faa6_SegmentReportingTotalAssetsbyReportableSegmentDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentReportingAssetReconcilingItemLineItems_69866559-4adf-4b13-883a-988c3afcb782" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentReportingAssetReconcilingItemLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_bc55e172-7271-48c5-8ff3-d924545cdb71" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentReportingAssetReconcilingItemLineItems_69866559-4adf-4b13-883a-988c3afcb782" xlink:to="loc_us-gaap_Assets_bc55e172-7271-48c5-8ff3-d924545cdb71" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable_3caa3e65-a6bd-441c-9eca-e1a7e077e0e1" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_SegmentReportingAssetReconcilingItemLineItems_69866559-4adf-4b13-883a-988c3afcb782" xlink:to="loc_us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable_3caa3e65-a6bd-441c-9eca-e1a7e077e0e1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementBusinessSegmentsAxis_3fefe665-4925-41a2-824b-607858d5851d" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_StatementBusinessSegmentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable_3caa3e65-a6bd-441c-9eca-e1a7e077e0e1" xlink:to="loc_us-gaap_StatementBusinessSegmentsAxis_3fefe665-4925-41a2-824b-607858d5851d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_3fefe665-4925-41a2-824b-607858d5851d_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3fefe665-4925-41a2-824b-607858d5851d" xlink:to="loc_us-gaap_SegmentDomain_3fefe665-4925-41a2-824b-607858d5851d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SegmentDomain_5f7f0914-9f23-4f27-842e-71b7d82b388e" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_SegmentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementBusinessSegmentsAxis_3fefe665-4925-41a2-824b-607858d5851d" xlink:to="loc_us-gaap_SegmentDomain_5f7f0914-9f23-4f27-842e-71b7d82b388e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_RockyMountainsMember_c74d97b3-6efb-4fbf-8aab-a5e1a767433a" xlink:href="klxe-20230331.xsd#klxe_RockyMountainsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5f7f0914-9f23-4f27-842e-71b7d82b388e" xlink:to="loc_klxe_RockyMountainsMember_c74d97b3-6efb-4fbf-8aab-a5e1a767433a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_SouthwestMember_34481429-9fe4-43dc-affb-f3db81ad7969" xlink:href="klxe-20230331.xsd#klxe_SouthwestMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5f7f0914-9f23-4f27-842e-71b7d82b388e" xlink:to="loc_klxe_SouthwestMember_34481429-9fe4-43dc-affb-f3db81ad7969" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_NortheastMember_011493a6-71ff-4004-b5d3-a08425f4ce37" xlink:href="klxe-20230331.xsd#klxe_NortheastMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SegmentDomain_5f7f0914-9f23-4f27-842e-71b7d82b388e" xlink:to="loc_klxe_NortheastMember_011493a6-71ff-4004-b5d3-a08425f4ce37" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsAxis_860f2bd1-f921-4c63-96fa-eb15308faf02" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ReconciliationOfAssetsFromSegmentToConsolidatedTable_3caa3e65-a6bd-441c-9eca-e1a7e077e0e1" xlink:to="loc_srt_ConsolidationItemsAxis_860f2bd1-f921-4c63-96fa-eb15308faf02" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_860f2bd1-f921-4c63-96fa-eb15308faf02_default" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ConsolidationItemsAxis_860f2bd1-f921-4c63-96fa-eb15308faf02" xlink:to="loc_srt_ConsolidationItemsDomain_860f2bd1-f921-4c63-96fa-eb15308faf02_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ConsolidationItemsDomain_dd2b48e3-6ec5-4cc2-9da4-0f7c9a2c3765" xlink:href="https://xbrl.fasb.org/srt/2022/elts/srt-2022.xsd#srt_ConsolidationItemsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ConsolidationItemsAxis_860f2bd1-f921-4c63-96fa-eb15308faf02" xlink:to="loc_srt_ConsolidationItemsDomain_dd2b48e3-6ec5-4cc2-9da4-0f7c9a2c3765" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingSegmentsMember_a906f0d4-415a-4552-b535-566ce46eabc0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_OperatingSegmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_dd2b48e3-6ec5-4cc2-9da4-0f7c9a2c3765" xlink:to="loc_us-gaap_OperatingSegmentsMember_a906f0d4-415a-4552-b535-566ce46eabc0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_klxe_CorporateAndReconcilingItemsMember_49a5637c-88d9-48a2-9d6f-84e69848dbb7" xlink:href="klxe-20230331.xsd#klxe_CorporateAndReconcilingItemsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ConsolidationItemsDomain_dd2b48e3-6ec5-4cc2-9da4-0f7c9a2c3765" xlink:to="loc_klxe_CorporateAndReconcilingItemsMember_49a5637c-88d9-48a2-9d6f-84e69848dbb7" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://www.klx.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="simple" xlink:href="klxe-20230331.xsd#NetIncomeLossPerCommonShareAdditionalInformationDetails"/>
  <link:definitionLink xlink:role="http://www.klx.com/role/NetIncomeLossPerCommonShareAdditionalInformationDetails" xlink:type="extended" id="i29134fa7ada042bbbf434fa2624d4d5f_NetIncomeLossPerCommonShareAdditionalInformationDetails">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EarningsPerShareBasicLineItems_c1c16172-8900-41b6-a470-1ae67cc29343" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_EarningsPerShareBasicLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_3ce3a2aa-ffc5-4516-888d-020b9747e0f0" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_c1c16172-8900-41b6-a470-1ae67cc29343" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_3ce3a2aa-ffc5-4516-888d-020b9747e0f0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_f0240730-e953-47af-bc04-2efae882a620" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EarningsPerShareBasicLineItems_c1c16172-8900-41b6-a470-1ae67cc29343" xlink:to="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_f0240730-e953-47af-bc04-2efae882a620" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_afdd94df-1149-42cd-b03c-07dce6949fad" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEarningsPerShareBasicByCommonClassTable_f0240730-e953-47af-bc04-2efae882a620" xlink:to="loc_us-gaap_AwardTypeAxis_afdd94df-1149-42cd-b03c-07dce6949fad" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_afdd94df-1149-42cd-b03c-07dce6949fad_default" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_afdd94df-1149-42cd-b03c-07dce6949fad" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_afdd94df-1149-42cd-b03c-07dce6949fad_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_63dc884a-a981-48a3-94ff-febd69011d4a" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_afdd94df-1149-42cd-b03c-07dce6949fad" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_63dc884a-a981-48a3-94ff-febd69011d4a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockMember_8d1ebbfa-a3d3-45c9-b4b7-92cd46b4b173" xlink:href="https://xbrl.fasb.org/us-gaap/2022/elts/us-gaap-2022.xsd#us-gaap_RestrictedStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_63dc884a-a981-48a3-94ff-febd69011d4a" xlink:to="loc_us-gaap_RestrictedStockMember_8d1ebbfa-a3d3-45c9-b4b7-92cd46b4b173" xlink:type="arc" order="0"/>
  </link:definitionLink>
</link:linkbase>
