<?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 “Create Source Type” inquiry in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Create-Source-Type-inquiry/m-p/490490#M83846</link>
    <description>&lt;P&gt;“Create Source Type” inquiry.&lt;/P&gt;

&lt;P&gt;We want to create a new sourcetype that break events based a word orderActivityRep { and the event ends with }.&lt;/P&gt;

&lt;P&gt;How to do it &lt;/P&gt;

&lt;P&gt;The logs arrive to Splunk in this format: Example:&lt;/P&gt;

&lt;P&gt;orderActivityRep {&lt;BR /&gt;
                secBoardId {&lt;BR /&gt;
                        securityIdType void,&lt;BR /&gt;
                        secCode "GFH",&lt;BR /&gt;
                        boardId "REGULAR"&lt;BR /&gt;
                },&lt;BR /&gt;
                orderId {&lt;BR /&gt;
                        orderDate 20190731,&lt;BR /&gt;
                        orderNo 9999,&lt;BR /&gt;
                        orderNoSuffix 0,&lt;BR /&gt;
                        speedIndex -1&lt;BR /&gt;
                },&lt;BR /&gt;
                orderStatus unplaced,&lt;BR /&gt;
                orderEvent place,&lt;BR /&gt;
                buySell sell,&lt;BR /&gt;
                quantity {&lt;BR /&gt;
                        value 20000,&lt;BR /&gt;
                        decimals 0&lt;BR /&gt;
                },&lt;BR /&gt;
                duration goodTillCancelled,&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;orderActivityRep {&lt;BR /&gt;
                secBoardId {&lt;BR /&gt;
                        securityIdType void,&lt;BR /&gt;
                        secCode "NBB",&lt;BR /&gt;
                        boardId "REGULAR"&lt;BR /&gt;
                },&lt;BR /&gt;
                orderId {&lt;BR /&gt;
                        orderDate 20120111,&lt;BR /&gt;
                        orderNo 9999,&lt;BR /&gt;
                        orderNoSuffix 0,&lt;BR /&gt;
                        speedIndex -1&lt;BR /&gt;
                },&lt;BR /&gt;
                orderStatus unplaced,&lt;BR /&gt;
                orderEvent place,&lt;BR /&gt;
                buySell sell,&lt;BR /&gt;
                quantity {&lt;BR /&gt;
                        value 2001,&lt;BR /&gt;
                        decimals 0&lt;BR /&gt;
                },&lt;BR /&gt;
                duration goodTillCancelled,&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;In the above example Splunk should create 2 events.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2020 07:55:44 GMT</pubDate>
    <dc:creator>RK_sp1unk</dc:creator>
    <dc:date>2020-01-23T07:55:44Z</dc:date>
    <item>
      <title>“Create Source Type” inquiry</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-Source-Type-inquiry/m-p/490490#M83846</link>
      <description>&lt;P&gt;“Create Source Type” inquiry.&lt;/P&gt;

&lt;P&gt;We want to create a new sourcetype that break events based a word orderActivityRep { and the event ends with }.&lt;/P&gt;

&lt;P&gt;How to do it &lt;/P&gt;

&lt;P&gt;The logs arrive to Splunk in this format: Example:&lt;/P&gt;

&lt;P&gt;orderActivityRep {&lt;BR /&gt;
                secBoardId {&lt;BR /&gt;
                        securityIdType void,&lt;BR /&gt;
                        secCode "GFH",&lt;BR /&gt;
                        boardId "REGULAR"&lt;BR /&gt;
                },&lt;BR /&gt;
                orderId {&lt;BR /&gt;
                        orderDate 20190731,&lt;BR /&gt;
                        orderNo 9999,&lt;BR /&gt;
                        orderNoSuffix 0,&lt;BR /&gt;
                        speedIndex -1&lt;BR /&gt;
                },&lt;BR /&gt;
                orderStatus unplaced,&lt;BR /&gt;
                orderEvent place,&lt;BR /&gt;
                buySell sell,&lt;BR /&gt;
                quantity {&lt;BR /&gt;
                        value 20000,&lt;BR /&gt;
                        decimals 0&lt;BR /&gt;
                },&lt;BR /&gt;
                duration goodTillCancelled,&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;orderActivityRep {&lt;BR /&gt;
                secBoardId {&lt;BR /&gt;
                        securityIdType void,&lt;BR /&gt;
                        secCode "NBB",&lt;BR /&gt;
                        boardId "REGULAR"&lt;BR /&gt;
                },&lt;BR /&gt;
                orderId {&lt;BR /&gt;
                        orderDate 20120111,&lt;BR /&gt;
                        orderNo 9999,&lt;BR /&gt;
                        orderNoSuffix 0,&lt;BR /&gt;
                        speedIndex -1&lt;BR /&gt;
                },&lt;BR /&gt;
                orderStatus unplaced,&lt;BR /&gt;
                orderEvent place,&lt;BR /&gt;
                buySell sell,&lt;BR /&gt;
                quantity {&lt;BR /&gt;
                        value 2001,&lt;BR /&gt;
                        decimals 0&lt;BR /&gt;
                },&lt;BR /&gt;
                duration goodTillCancelled,&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;In the above example Splunk should create 2 events.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 07:55:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-Source-Type-inquiry/m-p/490490#M83846</guid>
      <dc:creator>RK_sp1unk</dc:creator>
      <dc:date>2020-01-23T07:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: “Create Source Type” inquiry</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-Source-Type-inquiry/m-p/490491#M83847</link>
      <description>&lt;P&gt;Hi @RK_sp1unk,&lt;BR /&gt;
you should use a props.conf like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
SHOULD_LINEMERGE = true
LINE_BREAKER = orderActivityRep \{
TIME_PREFIX = orderDate\s
TIME_FORMAT = %Y%m%d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 09:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-Source-Type-inquiry/m-p/490491#M83847</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-01-23T09:02:49Z</dc:date>
    </item>
  </channel>
</rss>

