<?xml version="1.0"?>
<ownershipDocument>
    <schemaVersion>X0201</schemaVersion>

    <documentType>4</documentType><periodOfReport>2003-12-04</periodOfReport>
    <issuer>
        <issuerCik>0001097338</issuerCik>
        <issuerName>WITNESS SYSTEMS INC</issuerName>
        <issuerTradingSymbol>WITS</issuerTradingSymbol></issuer><reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001192462</rptOwnerCik>
            <rptOwnerName>CROTTY THOMAS J</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>C/O BATTERY VENTURES</rptOwnerStreet1>
            <rptOwnerStreet2>20 WILLIAM STREET, SUITE 200</rptOwnerStreet2>
            <rptOwnerCity>WELLESLEY</rptOwnerCity>
            <rptOwnerState>MA</rptOwnerState>
            <rptOwnerZipCode>02481</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
            <reportingOwnerRelationship>
<isDirector>1</isDirector><isOfficer>0</isOfficer><isTenPercentOwner>0</isTenPercentOwner><isOther>0</isOther></reportingOwnerRelationship></reportingOwner><nonDerivativeTable><nonDerivativeTransaction><securityTitle><value>Common Stock</value></securityTitle><transactionDate><value>2003-12-04</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>S</transactionCode><equitySwapInvolved>0</equitySwapInvolved><footnoteId id="F1"/></transactionCoding><transactionAmounts><transactionShares><value>61858</value></transactionShares><transactionPricePerShare><value>9.3168</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1695974</value><footnoteId id="F3"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value><footnoteId id="F3"/></directOrIndirectOwnership><natureOfOwnership><value>See Footnote</value><footnoteId id="F7"/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock</value></securityTitle><transactionDate><value>2003-12-04</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>S</transactionCode><equitySwapInvolved>0</equitySwapInvolved><footnoteId id="F2"/></transactionCoding><transactionAmounts><transactionShares><value>942</value></transactionShares><transactionPricePerShare><value>9.3168</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1695032</value><footnoteId id="F4"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value><footnoteId id="F4"/></directOrIndirectOwnership><natureOfOwnership><value>See Footnote</value><footnoteId id="F7"/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock</value></securityTitle><transactionDate><value>2003-12-05</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>S</transactionCode><equitySwapInvolved>0</equitySwapInvolved><footnoteId id="F1"/></transactionCoding><transactionAmounts><transactionShares><value>25019</value></transactionShares><transactionPricePerShare><value>9.2505</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1670013</value><footnoteId id="F5"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value><footnoteId id="F5"/></directOrIndirectOwnership><natureOfOwnership><value>See Footnote</value><footnoteId id="F7"/></natureOfOwnership></ownershipNature></nonDerivativeTransaction><nonDerivativeTransaction><securityTitle><value>Common Stock</value></securityTitle><transactionDate><value>2003-12-05</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>S</transactionCode><equitySwapInvolved>0</equitySwapInvolved><footnoteId id="F2"/></transactionCoding><transactionAmounts><transactionShares><value>381</value></transactionShares><transactionPricePerShare><value>9.2505</value></transactionPricePerShare><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1669632</value><footnoteId id="F6"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value><footnoteId id="F6"/></directOrIndirectOwnership><natureOfOwnership><value>See Footnote</value><footnoteId id="F7"/></natureOfOwnership></ownershipNature></nonDerivativeTransaction></nonDerivativeTable><footnotes><footnote id="F1">Sale by Battery Ventures IV, L.P. (&quot;Battery Ventures&quot;).</footnote><footnote id="F2">Sale by Battery Investment Partners IV, LLC (&quot;BIP&quot;).</footnote><footnote id="F3">Includes 6,091 shares directly owned, 1,663,606 shares held of record by Battery Ventures and 26,277 shares held of record by BIP.</footnote><footnote id="F4">Includes 6,091 shares directly owned, 1,663,606 shares held of record by Battery Ventures and 25,335 shares held of record by BIP.</footnote><footnote id="F5">Includes 6,091 shares directly owned, 1,638,587 shares held of record by Battery Ventures and 25,335 shares held of record by BIP.</footnote><footnote id="F6">Includes 6,091 shares directly owned, 1,638,587 shares held of record by Battery Ventures and 24,954 shares held of record by BIP.</footnote><footnote id="F7">The Reporting Person is a member manager of Battery Partners IV, LLC, the sole general partner of Battery Ventures.  The Reporting Person is a member of BIP.  BIP invests alongside Battery Ventures in all investments made by Battery Ventures and, therefore, the Reporting Person may be deemed to beneficially own the shares held of record by Battery Ventures and BIP. The Reporting Person disclaims beneficial ownership of the shares held by Battery Ventures and BIP except to the extent of his pecuniary interests therein.</footnote></footnotes><remarks/><ownerSignature><signatureName>Christopher Hanson as Attorney-in-Fact for Thomas J. Crotty</signatureName><signatureDate>2003-12-08</signatureDate></ownerSignature></ownershipDocument>

