<?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: Date column has some bad data. I just want to remove the row if the date is doubled up in a row. How do I discard a row based on character count or other logic? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267110#M176818</link>
    <description>&lt;P&gt;sure, this will list out the lines which are less than 20 characters length. &lt;BR /&gt;
when you said "I want to disgard a row", i thought to use the delete. &lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2016 13:09:52 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2016-09-07T13:09:52Z</dc:date>
    <item>
      <title>Date column has some bad data. I just want to remove the row if the date is doubled up in a row. How do I discard a row based on character count or other logic?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267106#M176814</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;

&lt;P&gt;Question about discarding rows, I want to disgard a row that is longer than 19 characters, if found in my query.&lt;BR /&gt;
See below we have some junk data and I want to remove whole row if I see an occurrence as seen below.&lt;/P&gt;

&lt;P&gt;Is there a way to say     row != varchar(19)  throw out row?    similar to sql.. Not perfect syntax on my part:)&lt;/P&gt;

&lt;P&gt;Throw out entire row based on this ugly row&lt;BR /&gt;
2016-02-12 09:32:592016-02-12 10:14:38&lt;/P&gt;

&lt;P&gt;This Row type keep  etc. etc..&lt;BR /&gt;
2016-02-12 09:32:59&lt;/P&gt;

&lt;P&gt;Thank You,&lt;BR /&gt;
Daniel MacGillivray&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 12:55:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267106#M176814</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2016-09-07T12:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date column has some bad data. I just want to remove the row if the date is doubled up in a row. How do I discard a row based on character count or other logic?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267107#M176815</link>
      <description>&lt;P&gt;Please check this one - &lt;BR /&gt;
to list down the events that are more than 19 char long - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search... |  eval length=len(_raw) | where length &amp;gt; 19 | table _raw _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to discard the events that are more than 19 char length, .....this will delete the indexed data (Caution: Removing data is irreversible. )&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   your search... |  eval length=len(_raw) | where length &amp;gt; 19 | delete
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:05:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267107#M176815</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-07T13:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date column has some bad data. I just want to remove the row if the date is doubled up in a row. How do I discard a row based on character count or other logic?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267108#M176816</link>
      <description>&lt;P&gt;This was just done on site. I think we solved it anyway. It would be good to see what other folks find.&lt;/P&gt;

&lt;P&gt;| eval length=len(Report_Generation_Start_Time) | where length&amp;lt;20&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:53:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267108#M176816</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2020-09-29T10:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date column has some bad data. I just want to remove the row if the date is doubled up in a row. How do I discard a row based on character count or other logic?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267109#M176817</link>
      <description>&lt;P&gt;Hello inventsekar,&lt;/P&gt;

&lt;P&gt;Thank you so much, quick question though. Does this need admin to be run? I wonder as I see the delete and is the delete command in this case only deleting from the SPL output only? Either way, thanks !!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:09:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267109#M176817</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2016-09-07T13:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date column has some bad data. I just want to remove the row if the date is doubled up in a row. How do I discard a row based on character count or other logic?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267110#M176818</link>
      <description>&lt;P&gt;sure, this will list out the lines which are less than 20 characters length. &lt;BR /&gt;
when you said "I want to disgard a row", i thought to use the delete. &lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267110#M176818</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-07T13:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date column has some bad data. I just want to remove the row if the date is doubled up in a row. How do I discard a row based on character count or other logic?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267111#M176819</link>
      <description>&lt;P&gt;Ahh, cool. Thanks, yeah, should have clarified, want to delete from search only. I would rather keep it around so we can talk to the data owners about it. Much appreciated !&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:13:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267111#M176819</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2016-09-07T13:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date column has some bad data. I just want to remove the row if the date is doubled up in a row. How do I discard a row based on character count or other logic?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267112#M176820</link>
      <description>&lt;P&gt;yes, this needs admin privilege or, user must have "can_delete" role. &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.4.3/Admin/Aboutusersandroles"&gt;https://docs.splunk.com/Documentation/Splunk/6.4.3/Admin/Aboutusersandroles&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Please be aware - the delete command deletes the indexed data. &lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:13:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267112#M176820</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-07T13:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date column has some bad data. I just want to remove the row if the date is doubled up in a row. How do I discard a row based on character count or other logic?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267113#M176821</link>
      <description>&lt;P&gt;Understood, glad you said that for other folks to be aware of.  &lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 13:15:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267113#M176821</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2016-09-07T13:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date column has some bad data. I just want to remove the row if the date is doubled up in a row. How do I discard a row based on character count or other logic?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267114#M176822</link>
      <description>&lt;P&gt;To clarify two things:&lt;/P&gt;

&lt;P&gt;1) Even admin doesn't have the can_delete capability by default. I consider it best practice to create a separate user with that capability, so bad things don't happen as easily... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;2) | delete only marks events such that they are no longer returned when searching. It will not get removed from disk until it ages out. Just saying.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 18:52:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267114#M176822</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2016-09-07T18:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date column has some bad data. I just want to remove the row if the date is doubled up in a row. How do I discard a row based on character count or other logic?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267115#M176823</link>
      <description>&lt;P&gt;Thanks Ssievert. I have my own delete user name and follow that logic. It was not a consideration for me to use the delete command so freely so I asked about admin but forgot it is not set up by default and would not be a good idea to add that to it.&lt;/P&gt;

&lt;P&gt;I fully concur that without a clean command you are not deleting that data anyway.  I have no intention of deleting just skipping by the data on the way to the DB from the upsert with the new DB connect..  &lt;/P&gt;

&lt;P&gt;Really good advice out here as usual. Best forum of any product on the net !&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 19:25:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Date-column-has-some-bad-data-I-just-want-to-remove-the-row-if/m-p/267115#M176823</guid>
      <dc:creator>dmacgillivray</dc:creator>
      <dc:date>2016-09-07T19:25:17Z</dc:date>
    </item>
  </channel>
</rss>

