<?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 index a conf file like below in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-conf-file-like-below/m-p/147269#M29997</link>
    <description>&lt;P&gt;Data preview is your best friend.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/Overviewofdatapreview" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/Overviewofdatapreview&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Are you events supposed to be  : abbpenwscac25.test.com and abbpenwscac26.test.com ?&lt;/P&gt;

&lt;P&gt;[EDIT]&lt;BR /&gt;
example :&lt;BR /&gt;
Try this sourcetype definition in props.conf&lt;BR /&gt;
`&lt;BR /&gt;
[mysourcetype]&lt;BR /&gt;
BREAK_ONLY_BEFORE=^&amp;lt;&lt;BR /&gt;
 # to start after opening html tags.&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE=false&lt;BR /&gt;
MUST_BREAK_AFTER=&amp;lt;./.*&amp;gt;$&lt;BR /&gt;
 # to break after closing html tags&lt;BR /&gt;
NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;/P&gt;

&lt;P&gt;# for the timestamp, you can use the index time&lt;BR /&gt;
DATETIME_CONFIG = CURRENT&lt;BR /&gt;
`&lt;/P&gt;

&lt;P&gt;and test with data preview&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://answers.splunk.com//storage/preview.png" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:52:22 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2020-09-28T15:52:22Z</dc:date>
    <item>
      <title>How to index a conf file like below</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-conf-file-like-below/m-p/147268#M29996</link>
      <description>&lt;P&gt;Can you help me write a regex to index a configuraton file like below. There are no time stamps in it. Anything in &amp;lt; ....&amp;gt; and &amp;lt;/ ....&amp;gt; is a event.&lt;/P&gt;

&lt;P&gt;&amp;lt; setup&amp;gt;&lt;BR /&gt;
   loglevel = 0&lt;BR /&gt;
   logfile = net_connect.log&lt;BR /&gt;
   interval = 10&lt;BR /&gt;
   max_threads = 10&lt;BR /&gt;
   icmp_burst = 3&lt;BR /&gt;
   icmp_timeout = 2&lt;BR /&gt;
   icmp_size = 32&lt;BR /&gt;
   qos_interval = 10min&lt;BR /&gt;
   bind = no&lt;BR /&gt;
   &amp;lt; /setup&amp;gt;&lt;BR /&gt;
   &amp;lt; profiles&amp;gt;&lt;BR /&gt;
&amp;lt; abbpenwscac25.test.com&amp;gt;&lt;BR /&gt;
      active = yes&lt;BR /&gt;
      QoS = yes&lt;BR /&gt;
      ping = yes&lt;BR /&gt;
      interval = 5min&lt;BR /&gt;
      hostname = abbpenwscac25.test.com&lt;BR /&gt;
      ip = 10.21.225.35&lt;BR /&gt;
      timeout = 10&lt;BR /&gt;
      failures = 2&lt;BR /&gt;
      retries = 2&lt;BR /&gt;
      msg_ok = MsgConnectOk&lt;BR /&gt;
      msg_fail = MsgConnectFail&lt;BR /&gt;
      source = 0&lt;BR /&gt;
      target = 2&lt;BR /&gt;
      icmp_size = 0&lt;BR /&gt;
      flags = 0&lt;BR /&gt;
      group = origin:Network;class:12db_ci_netgear;&lt;BR /&gt;
      contactinfo = Network Services&lt;BR /&gt;
      alarm = 3&lt;BR /&gt;
      icmp_threshold = 2000&lt;BR /&gt;
      alarm_on_packet_loss = no&lt;BR /&gt;
      packets_to_send = 0&lt;BR /&gt;
      max_packets_lost = 0&lt;BR /&gt;
      qos_on_packets_lost = no&lt;BR /&gt;
      delay_between_packet_to_send = 0&lt;BR /&gt;
   &amp;lt; /abbpenwscac25.test.com&amp;gt;&lt;BR /&gt;
   &amp;lt; abbpenwscac26.test.com&amp;gt;&lt;BR /&gt;
      active = yes&lt;BR /&gt;
      QoS = yes&lt;BR /&gt;
      ping = yes&lt;BR /&gt;
      interval = 5min&lt;BR /&gt;
      hostname = abbpenwscac26.test.com&lt;BR /&gt;
      ip = 10.21.225.36&lt;BR /&gt;
      timeout = 10&lt;BR /&gt;
      failures = 2&lt;BR /&gt;
      retries = 2&lt;BR /&gt;
      msg_ok = MsgConnectOk&lt;BR /&gt;
      msg_fail = MsgConnectFail&lt;BR /&gt;
      source = 0&lt;BR /&gt;
      target = 2&lt;BR /&gt;
      icmp_size = 0&lt;BR /&gt;
      flags = 0&lt;BR /&gt;
      group = origin:Network;class:12db_ci_netgear;&lt;BR /&gt;
      contactinfo = Network Services&lt;BR /&gt;
      alarm = 3&lt;BR /&gt;
      icmp_threshold = 2000&lt;BR /&gt;
      alarm_on_packet_loss = no&lt;BR /&gt;
      packets_to_send = 0&lt;BR /&gt;
      max_packets_lost = 0&lt;BR /&gt;
      qos_on_packets_lost = no&lt;BR /&gt;
      delay_between_packet_to_send = 0&lt;BR /&gt;
   &amp;lt; /abbpenwscac26.test.com&amp;gt;&lt;BR /&gt;
   &amp;lt; /profiles&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-conf-file-like-below/m-p/147268#M29996</guid>
      <dc:creator>ballu611</dc:creator>
      <dc:date>2020-09-28T15:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to index a conf file like below</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-conf-file-like-below/m-p/147269#M29997</link>
      <description>&lt;P&gt;Data preview is your best friend.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/Overviewofdatapreview" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/Overviewofdatapreview&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Are you events supposed to be  : abbpenwscac25.test.com and abbpenwscac26.test.com ?&lt;/P&gt;

&lt;P&gt;[EDIT]&lt;BR /&gt;
example :&lt;BR /&gt;
Try this sourcetype definition in props.conf&lt;BR /&gt;
`&lt;BR /&gt;
[mysourcetype]&lt;BR /&gt;
BREAK_ONLY_BEFORE=^&amp;lt;&lt;BR /&gt;
 # to start after opening html tags.&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE=false&lt;BR /&gt;
MUST_BREAK_AFTER=&amp;lt;./.*&amp;gt;$&lt;BR /&gt;
 # to break after closing html tags&lt;BR /&gt;
NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=true&lt;/P&gt;

&lt;P&gt;# for the timestamp, you can use the index time&lt;BR /&gt;
DATETIME_CONFIG = CURRENT&lt;BR /&gt;
`&lt;/P&gt;

&lt;P&gt;and test with data preview&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://answers.splunk.com//storage/preview.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:52:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-conf-file-like-below/m-p/147269#M29997</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2020-09-28T15:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to index a conf file like below</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-conf-file-like-below/m-p/147270#M29998</link>
      <description>&lt;P&gt;Yes, they are supposed to be abbpenwscac25.test.com and abbpenwscac26.test.com.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 15:54:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-conf-file-like-below/m-p/147270#M29998</guid>
      <dc:creator>ballu611</dc:creator>
      <dc:date>2014-02-12T15:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to index a conf file like below</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-conf-file-like-below/m-p/147271#M29999</link>
      <description>&lt;P&gt;Yes, they are supposed to be abbpenwscac25.test.com and abbpenwscac26.test.com.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 15:55:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-a-conf-file-like-below/m-p/147271#M29999</guid>
      <dc:creator>ballu611</dc:creator>
      <dc:date>2014-02-12T15:55:05Z</dc:date>
    </item>
  </channel>
</rss>

