<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to exclude other words from one log in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-exclude-other-words-from-one-log/m-p/656827#M54103</link>
    <description>&lt;P&gt;It's possible no events have the expected fileName value during the selected time range.&amp;nbsp; Try removing the &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command to see if results are shown.&amp;nbsp; If they are, then examine the events closely to ensure they are filtered as desired.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2023 12:55:37 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-09-06T12:55:37Z</dc:date>
    <item>
      <title>How to exclude other words from one log</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-exclude-other-words-from-one-log/m-p/656294#M54062</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I have below row logs:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;2023-08-30&lt;/SPAN&gt; &lt;SPAN class=""&gt;07:43:29.000&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN class=""&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt; ] [&lt;/SPAN&gt;&lt;SPAN class=""&gt;Thread-18&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;StatisticBalancer&lt;/SPAN&gt; &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;statisticData:&lt;/SPAN&gt; &lt;SPAN class=""&gt;StatisticData&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN class=""&gt;selectedDataSet=13283520&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;rejectedDataSet=0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;totalOutputRecords=20670402&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;totalInputRecords=0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;fileSequenceNum=9226&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;fileHeaderBusDt=08/29/2023&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;busDt=08/29/2023&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;fileName=TRIM.UNB.D082923.T045920&lt;/STRONG&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;2023-08-30 05:36:30.678&lt;SPAN&gt; [&lt;/SPAN&gt;INFO&lt;SPAN&gt; ] [&lt;/SPAN&gt;Thread-19&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;StatisticBalancer - statisticData: StatisticData&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;selectedDataSet=27&lt;SPAN&gt;, &lt;/SPAN&gt;rejectedDataSet=0&lt;SPAN&gt;, &lt;/SPAN&gt;totalOutputRecords=27&lt;SPAN&gt;, &lt;/SPAN&gt;totalInputRecords=0&lt;SPAN&gt;, &lt;/SPAN&gt;fileSequenceNum=6395&lt;SPAN&gt;, &lt;/SPAN&gt;fileHeaderBusDt=08/29/2023&lt;SPAN&gt;, &lt;/SPAN&gt;busDt=08/29/2023&lt;SPAN&gt;, &lt;/SPAN&gt;fileName=TRIM.CNX.D082923.T052656]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I want to fetch records only for highlighted file&amp;nbsp; not for other files but I am getting for both the files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;My current query:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="600000304_d_gridgain_idx*" sourcetype =$Regions$ source="/amex/app/gfp-settlement-raw/logs/gfp-settlement-raw.log" "StatisticBalancer - statisticData: StatisticData"
|rex "totalOutputRecords=(?&amp;lt;totalOutputRecords&amp;gt;),busDt=(?&amp;lt;busDt&amp;gt;),fileName=(?&amp;lt;fileName&amp;gt;),totalAchCurrOutstBalAmt=(?&amp;lt;totalAchCurrOutstBalAmt&amp;gt;),totalAchBalLastStmtAmt=(?&amp;lt;totalAchBalLastStmtAmt&amp;gt;),totalClosingBal=(?&amp;lt;totalClosingBal&amp;gt;),totalRecordsWritten=(?&amp;lt;totalRecordsWritten&amp;gt;),totalRecords=(?&amp;lt;totalRecords&amp;gt;)"
|table busDt fileName totalAchCurrOutstBalAmt totalAchBalLastStmtAmt totalClosingBal totalRecordsWritten totalRecords&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 17:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-exclude-other-words-from-one-log/m-p/656294#M54062</guid>
      <dc:creator>aditsss</dc:creator>
      <dc:date>2023-08-31T17:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude other words from one log</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-exclude-other-words-from-one-log/m-p/656304#M54065</link>
      <description>&lt;P&gt;There are two ways to exclude events containing certain words.&amp;nbsp; The first is to put the word(s) in the base search ( the part before the first |) preceded by "NOT".&amp;nbsp; It may be easier to put desired words here if that number is smaller.&amp;nbsp; This won't work if the work must be in a specific field this not yet extracted.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="600000304_d_gridgain_idx*" sourcetype =$Regions$ source="/amex/app/gfp-settlement-raw/logs/gfp-settlement-raw.log" "StatisticBalancer - statisticData: StatisticData" "TRIM.UNB.D082923.T045920"
|rex "totalOutputRecords=(?&amp;lt;totalOutputRecords&amp;gt;),busDt=(?&amp;lt;busDt&amp;gt;),fileName=(?&amp;lt;fileName&amp;gt;),totalAchCurrOutstBalAmt=(?&amp;lt;totalAchCurrOutstBalAmt&amp;gt;),totalAchBalLastStmtAmt=(?&amp;lt;totalAchBalLastStmtAmt&amp;gt;),totalClosingBal=(?&amp;lt;totalClosingBal&amp;gt;),totalRecordsWritten=(?&amp;lt;totalRecordsWritten&amp;gt;),totalRecords=(?&amp;lt;totalRecords&amp;gt;)"
|table busDt fileName totalAchCurrOutstBalAmt totalAchBalLastStmtAmt totalClosingBal totalRecordsWritten totalRecords&lt;/LI-CODE&gt;&lt;P&gt;The other way is to use the search or where command to filter out events with the offending words (or keep those with desired words).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="600000304_d_gridgain_idx*" sourcetype =$Regions$ source="/amex/app/gfp-settlement-raw/logs/gfp-settlement-raw.log" "StatisticBalancer - statisticData: StatisticData"
|rex "totalOutputRecords=(?&amp;lt;totalOutputRecords&amp;gt;),busDt=(?&amp;lt;busDt&amp;gt;),fileName=(?&amp;lt;fileName&amp;gt;),totalAchCurrOutstBalAmt=(?&amp;lt;totalAchCurrOutstBalAmt&amp;gt;),totalAchBalLastStmtAmt=(?&amp;lt;totalAchBalLastStmtAmt&amp;gt;),totalClosingBal=(?&amp;lt;totalClosingBal&amp;gt;),totalRecordsWritten=(?&amp;lt;totalRecordsWritten&amp;gt;),totalRecords=(?&amp;lt;totalRecords&amp;gt;)"
| where fileName="TRIM.UNB.D082923.T045920"
|table busDt fileName totalAchCurrOutstBalAmt totalAchBalLastStmtAmt totalClosingBal totalRecordsWritten totalRecords&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 17:58:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-exclude-other-words-from-one-log/m-p/656304#M54065</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-08-31T17:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude other words from one log</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-exclude-other-words-from-one-log/m-p/656815#M54102</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with this query but not able to see any result:&lt;/P&gt;&lt;P&gt;index="abc" sourcetype =$Regions$ source="/amex/app/gfp-settlement-raw/logs/gfp-settlement-raw.log" "StatisticBalancer - statisticData: StatisticData"&lt;BR /&gt;|rex "totalOutputRecords=(?&amp;lt;totalOutputRecords&amp;gt;),busDt=(?&amp;lt;busDt&amp;gt;),fileName=(?&amp;lt;fileName&amp;gt;),totalAchCurrOutstBalAmt=(?&amp;lt;totalAchCurrOutstBalAmt&amp;gt;),totalAchBalLastStmtAmt=(?&amp;lt;totalAchBalLastStmtAmt&amp;gt;),totalClosingBal=(?&amp;lt;totalClosingBal&amp;gt;),totalRecordsWritten=(?&amp;lt;totalRecordsWritten&amp;gt;),totalRecords=(?&amp;lt;totalRecords&amp;gt;)"&lt;BR /&gt;| where fileName="TRIM.UNB.D082923.T045920"&lt;BR /&gt;|table busDt fileName totalAchCurrOutstBalAmt totalAchBalLastStmtAmt totalClosingBal totalRecordsWritten totalRecords&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 11:53:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-exclude-other-words-from-one-log/m-p/656815#M54102</guid>
      <dc:creator>aditsss</dc:creator>
      <dc:date>2023-09-06T11:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to exclude other words from one log</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-exclude-other-words-from-one-log/m-p/656827#M54103</link>
      <description>&lt;P&gt;It's possible no events have the expected fileName value during the selected time range.&amp;nbsp; Try removing the &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command to see if results are shown.&amp;nbsp; If they are, then examine the events closely to ensure they are filtered as desired.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 12:55:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-exclude-other-words-from-one-log/m-p/656827#M54103</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-09-06T12:55:37Z</dc:date>
    </item>
  </channel>
</rss>

