<?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: Props Configuration with for Text File with First 2 lines contain header info in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Props-Configuration-with-for-Text-File-with-First-2-lines/m-p/571436#M199134</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234909"&gt;@SplunkDash&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You text file is not a qualified CSV as they don't have comma , separated values/header. To use space your event_name having value User Login which is having space that would not extract whole value of event_name.&lt;/P&gt;&lt;P&gt;one solution would be to drop the header and second line with ------ and use search time field extractions.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;props shall be configured on HF/indexer to drop the header and ---- lines. ( use nullQueue ),&amp;nbsp;Timestamp extraction you can use regex - TIME_PREFIX = ^\d+\s+\d+\s+\S+\s+ , TIME_FORMAT = &amp;lt;set_here&amp;gt;&lt;/LI&gt;&lt;LI&gt;props having search-time extractions shall go to SH.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In total you need to have two set's of props here.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if this reply helps!&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 00:46:53 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2021-10-19T00:46:53Z</dc:date>
    <item>
      <title>Props Configuration with for Text File with First 2 lines contain header info</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Props-Configuration-with-for-Text-File-with-First-2-lines/m-p/571428#M199127</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have an issue writing props configuration for text source file which contains first 2 line (including "----" line) as header info. Please see 3 sample events along with 2 header lines below. I also included the props that I wrote for this source file, but not working as expected....getting some error message "&lt;STRONG&gt;failed to parse timestamp". &lt;/STRONG&gt;Any help will he highly appreciated. Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Event_id&amp;nbsp; user_id&amp;nbsp; &amp;nbsp;group_id&amp;nbsp; create_date&amp;nbsp; create_login&amp;nbsp; company_event_id&amp;nbsp; event_name&amp;nbsp;&amp;nbsp;&lt;BR /&gt;----------------- ----------- ----------- ----------------------- ------------ ------------------------- --------------&lt;BR /&gt;105&amp;nbsp; 346923 NULL&amp;nbsp; 2021-10-07 14:13:21.160 783923 45655234 User Login&amp;nbsp;&lt;BR /&gt;250 165223 NULL 2021-10-07 15:33:54.857&amp;nbsp; &amp;nbsp;566923&amp;nbsp; 92557239 User Login&amp;nbsp;&lt;BR /&gt;25 1168923 NULL 2021-10-07 16:44:05.257&amp;nbsp; &amp;nbsp;346923&amp;nbsp; 34558242 User Login&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;props config file I wrote&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;SHOULD_LINEMERGE=false&lt;/P&gt;&lt;P class=""&gt;INDEXED_EXTRACTIONS=csv&lt;/P&gt;&lt;P class=""&gt;TIMESTAMP_FIELDS=create_date&lt;/P&gt;&lt;P class=""&gt;TIME_FORMAT=%Y-%m-%d&amp;nbsp; %H:%M:%S.%3N&lt;/P&gt;&lt;P class=""&gt;HEADERFIELD_LINE_NUMBER=1&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 23:23:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Props-Configuration-with-for-Text-File-with-First-2-lines/m-p/571428#M199127</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2021-10-18T23:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Props Configuration with for Text File with First 2 lines contain header info</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Props-Configuration-with-for-Text-File-with-First-2-lines/m-p/571436#M199134</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234909"&gt;@SplunkDash&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You text file is not a qualified CSV as they don't have comma , separated values/header. To use space your event_name having value User Login which is having space that would not extract whole value of event_name.&lt;/P&gt;&lt;P&gt;one solution would be to drop the header and second line with ------ and use search time field extractions.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;props shall be configured on HF/indexer to drop the header and ---- lines. ( use nullQueue ),&amp;nbsp;Timestamp extraction you can use regex - TIME_PREFIX = ^\d+\s+\d+\s+\S+\s+ , TIME_FORMAT = &amp;lt;set_here&amp;gt;&lt;/LI&gt;&lt;LI&gt;props having search-time extractions shall go to SH.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;In total you need to have two set's of props here.&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if this reply helps!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 00:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Props-Configuration-with-for-Text-File-with-First-2-lines/m-p/571436#M199134</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-10-19T00:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Props Configuration with for Text File with First 2 lines contain header info</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Props-Configuration-with-for-Text-File-with-First-2-lines/m-p/571452#M199137</link>
      <description>&lt;P&gt;Thank you so much for your quick response, appreciated. But, TIME_PREFIX/TIME FORMAT is not working as expected, getting some error message couldn't "parse timestamp". Any help will be appreciated!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I used&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TIME_PREFIX=^\d+\s+\d+\s+\w+\s+&lt;/P&gt;&lt;P&gt;TIME_FORMAT=%Y-%m-%d %H:%M%S.%3N&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 02:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Props-Configuration-with-for-Text-File-with-First-2-lines/m-p/571452#M199137</guid>
      <dc:creator>SplunkDash</dc:creator>
      <dc:date>2021-10-19T02:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Props Configuration with for Text File with First 2 lines contain header info</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Props-Configuration-with-for-Text-File-with-First-2-lines/m-p/571453#M199138</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234909"&gt;@SplunkDash&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you have a typo in both TIME_PREFIX (capital \S in regex) and TIME_FORMAT (:%S missed). Try this, should work for other lines excluding first two lines.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ __auto__learned__ ]
SHOULD_LINEMERGE=false
LINE_BREAKER=([\r\n]+)
TIME_PREFIX=\d+\s+\d+\s+\S+\s+
TIME_FORMAT=%Y-%m-%d %H:%M:%S.%3Q
MAX_TIMESTAMP_LOOKAHEAD=40&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; ---&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if this reply helps!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 02:47:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Props-Configuration-with-for-Text-File-with-First-2-lines/m-p/571453#M199138</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-10-19T02:47:24Z</dc:date>
    </item>
  </channel>
</rss>

