<?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 remove fields dynamically  from a search in Search Log Processing? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340180#M41037</link>
    <description>&lt;P&gt;i made a chart couting by month, then i renamed them all but i had some problems of sorting so  i had to put numbers.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Apr 2018 16:23:58 GMT</pubDate>
    <dc:creator>DiegoAlba</dc:creator>
    <dc:date>2018-04-18T16:23:58Z</dc:date>
    <item>
      <title>How to remove fields dynamically  from a search in Search Log Processing?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340171#M41028</link>
      <description>&lt;P&gt;Hello, everyone, I hope you can help me.&lt;BR /&gt;
My table seems like this: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Name    January February    March   April   May 
Security    8          6                    5           7       
Data    66        77                    86          88      
Logs    76        56                    45          83      
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to remove May dynamically because May hasn’t already happened&lt;BR /&gt;
I want to remove the May column dynamically so the “field ” (fields - May) function doesn’t work because it is not dynamic. May is going to happen, what I tried to do and I was looking for is a function to do this.&lt;BR /&gt;
If a column is null (no data) remove from the table&lt;/P&gt;

&lt;P&gt;Can someone of you help me to solve this?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 19:05:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340171#M41028</guid>
      <dc:creator>DiegoAlba</dc:creator>
      <dc:date>2018-04-17T19:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove fields dynamically  from a search in Search Log Processing?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340172#M41029</link>
      <description>&lt;P&gt;@DiegoAlba is this for a report or dashboard? Would it be possible for you to share your query?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 19:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340172#M41029</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-17T19:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove fields dynamically  from a search in Search Log Processing?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340173#M41030</link>
      <description>&lt;P&gt;How are you getting the columns names for months? Are you doing some sort of Year to date report?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 19:45:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340173#M41030</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-17T19:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove fields dynamically  from a search in Search Log Processing?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340174#M41031</link>
      <description>&lt;P&gt;if the entire column is null, you could just do a &lt;CODE&gt;|stats values(*) as * by Name&lt;/CODE&gt; and it'll only do the values for the fields with data. The only problem is that it will resort it alphanumerically. i'm not sure what the entire search/data looks like, but if you could have the months preceeding with &lt;EM&gt;01-January&lt;/EM&gt;, for instance, that would sort it properly, and then you could do a &lt;CODE&gt;rename&lt;/CODE&gt; command in the end to remove the &lt;CODE&gt;01-&lt;/CODE&gt; if necessary.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 19:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340174#M41031</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2018-04-17T19:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove fields dynamically  from a search in Search Log Processing?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340175#M41032</link>
      <description>&lt;P&gt;That looks like the output of a chart command.  The manipulation you are trying to do should PROBABLY be done BEFORE running the chart command.  &lt;/P&gt;

&lt;P&gt;If you post the actual search code, then we can help you do that.  &lt;/P&gt;

&lt;P&gt;Otherwise, the dynamic presentation of columns with English month names suffers from the problem that @cmerriman noted - they will not sort into the correct order.  If you initially created the months as "2018_01 Jan", for example, you could then sort them back and if desired, reformat them back after sorting.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 20:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340175#M41032</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-04-17T20:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove fields dynamically  from a search in Search Log Processing?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340176#M41033</link>
      <description>&lt;P&gt;You can try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;% your search %
| fields Name 
    [| gentimes start=01/01/18 increment=1d 
    | eval month=strftime(starttime, "%B") 
    | dedup month 
    | stats list(month) as months 
    | nomv months
    | return $months]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I believe, it's better to remove "May" somewhere before in your search, for example, by checking for nulls or something like that.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 06:19:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340176#M41033</guid>
      <dc:creator>nryabykh</dc:creator>
      <dc:date>2018-04-18T06:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove fields dynamically  from a search in Search Log Processing?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340177#M41034</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Mr @DiegoAlba, And if you try this, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal 
| eval date_month=strftime(_time,"%Y-%m-%B")
| chart count by  date_month log_level 
| eval date_month=substr(date_month,9)
| transpose header_field=date_month column_name=log_level
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This proposition can sorte the header colulmn ans eleminate the null value&lt;/P&gt;

&lt;P&gt;You can juste copied and past this solution, if you have any problème comment this response please&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 10:40:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340177#M41034</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-04-18T10:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove fields dynamically  from a search in Search Log Processing?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340178#M41035</link>
      <description>&lt;P&gt;Hey thank you so much,!&lt;/P&gt;

&lt;P&gt;I had the problem you talk about resorting alphanumerically, so i put 01-January as you mentioned &lt;/P&gt;

&lt;P&gt;Thanks ;D&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 15:03:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340178#M41035</guid>
      <dc:creator>DiegoAlba</dc:creator>
      <dc:date>2018-04-18T15:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove fields dynamically  from a search in Search Log Processing?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340179#M41036</link>
      <description>&lt;P&gt;Thats for a report,, after exclude the column    then i had some problems of  sorting so i had to renama my columns as 01-january and so on...&lt;/P&gt;

&lt;P&gt;than you so much Niketnilay ;D&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 16:21:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340179#M41036</guid>
      <dc:creator>DiegoAlba</dc:creator>
      <dc:date>2018-04-18T16:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove fields dynamically  from a search in Search Log Processing?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340180#M41037</link>
      <description>&lt;P&gt;i made a chart couting by month, then i renamed them all but i had some problems of sorting so  i had to put numbers.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 16:23:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-remove-fields-dynamically-from-a-search-in-Search-Log/m-p/340180#M41037</guid>
      <dc:creator>DiegoAlba</dc:creator>
      <dc:date>2018-04-18T16:23:58Z</dc:date>
    </item>
  </channel>
</rss>

