<?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 will i filter rows with specific column specification in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-will-i-filter-rows-with-specific-column-specification/m-p/160622#M44619</link>
    <description>&lt;P&gt;Its a splunk search question:&lt;/P&gt;

&lt;P&gt;For time being my query is as follows:&lt;BR /&gt;
source="base_bds_adsl.csv"  | eval str=substr(COD_SC_CSO,3,2) | table str,N_BD,data_ini,data_fim,cd_enc,ESCRITORIO,AREA,    NUMERO_TERMINAL,CNL,id_atlz,COD_SC_CSO, DDD,Sigla| where  str="68&lt;/P&gt;

&lt;P&gt;but  i dont want to display str in my table&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:57:04 GMT</pubDate>
    <dc:creator>kavyatim</dc:creator>
    <dc:date>2020-09-28T15:57:04Z</dc:date>
    <item>
      <title>how will i filter rows with specific column specification</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-will-i-filter-rows-with-specific-column-specification/m-p/160620#M44617</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I have a table called "Database"  with column like this :&lt;BR /&gt;
COD_SC_CSO&lt;BR /&gt;
51681&lt;BR /&gt;
11680&lt;BR /&gt;
11680&lt;BR /&gt;
11268&lt;BR /&gt;
11251&lt;BR /&gt;
I would like to filter rows only where COD_SC_CSO 2 and 3 position is 68. . &lt;BR /&gt;
For example  if COD_SC_CSO =51681(2 and 3 position is 68), i want to filter entire row of COD_SC_CSO =51681&lt;/P&gt;

&lt;P&gt;Can any one help me out to do this.&lt;/P&gt;

&lt;P&gt;Thanking&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:57:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-will-i-filter-rows-with-specific-column-specification/m-p/160620#M44617</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2020-09-28T15:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: how will i filter rows with specific column specification</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-will-i-filter-rows-with-specific-column-specification/m-p/160621#M44618</link>
      <description>&lt;P&gt;Is this a splunk search question? Or are you asking how to only index the filtered data ?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2014 05:38:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-will-i-filter-rows-with-specific-column-specification/m-p/160621#M44618</guid>
      <dc:creator>cmeinco</dc:creator>
      <dc:date>2014-02-21T05:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: how will i filter rows with specific column specification</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-will-i-filter-rows-with-specific-column-specification/m-p/160622#M44619</link>
      <description>&lt;P&gt;Its a splunk search question:&lt;/P&gt;

&lt;P&gt;For time being my query is as follows:&lt;BR /&gt;
source="base_bds_adsl.csv"  | eval str=substr(COD_SC_CSO,3,2) | table str,N_BD,data_ini,data_fim,cd_enc,ESCRITORIO,AREA,    NUMERO_TERMINAL,CNL,id_atlz,COD_SC_CSO, DDD,Sigla| where  str="68&lt;/P&gt;

&lt;P&gt;but  i dont want to display str in my table&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:57:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-will-i-filter-rows-with-specific-column-specification/m-p/160622#M44619</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2020-09-28T15:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: how will i filter rows with specific column specification</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-will-i-filter-rows-with-specific-column-specification/m-p/160623#M44620</link>
      <description>&lt;P&gt;Well, you almost got the answer yourself, you just need to reorder your search a bit.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="base_bds_adsl.csv" | eval str=substr(COD_SC_CSO,3,2) | search str=68 | table N_BD,data_ini,data_fim,cd_enc,ESCRITORIO,AREA, NUMERO_TERMINAL,CNL,id_atlz,COD_SC_CSO, DDD,Sigla
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Feb 2014 06:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-will-i-filter-rows-with-specific-column-specification/m-p/160623#M44620</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-02-21T06:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: how will i filter rows with specific column specification</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-will-i-filter-rows-with-specific-column-specification/m-p/160624#M44621</link>
      <description>&lt;P&gt;I'm not sure which is more efficient, but since my brain works in regex, this would also work: &lt;/P&gt;

&lt;P&gt;source="base_bds_adsl.csv" | regex COD_SC_CSO="^\d{2}68\d$" | table N_BD,data_ini,data_fim,cd_enc,ESCRITORIO,AREA, NUMERO_TERMINAL,CNL,id_atlz,COD_SC_CSO, DDD,Sigla&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:57:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-will-i-filter-rows-with-specific-column-specification/m-p/160624#M44621</guid>
      <dc:creator>cmeinco</dc:creator>
      <dc:date>2020-09-28T15:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: how will i filter rows with specific column specification</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-will-i-filter-rows-with-specific-column-specification/m-p/160625#M44622</link>
      <description>&lt;P&gt;You are not entirely clear by "filter" if you mean to "keep" or to "throw away" the items with the substring of '68'.&lt;/P&gt;

&lt;P&gt;Don't forget, the &lt;CODE&gt;where&lt;/CODE&gt; command can do almost anything &lt;CODE&gt;eval&lt;/CODE&gt; can do, but can do comparisons as well.  So this should work as well:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="base_bds_adsl.csv" | where  (substr(COD_SC_CSO,3,2)=68)  
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Feb 2014 13:07:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-will-i-filter-rows-with-specific-column-specification/m-p/160625#M44622</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2014-02-22T13:07:32Z</dc:date>
    </item>
  </channel>
</rss>

