<?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: using source in props.conf to break the below event based on realm . in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/using-source-in-props-conf-to-break-the-below-event-based-on/m-p/401014#M99294</link>
    <description>&lt;P&gt;You can do it like this:&lt;BR /&gt;
you have to use transform to change the sourcetype like below:&lt;BR /&gt;
props:&lt;/P&gt;

&lt;P&gt;[source::/opt/app/logs/openam/authentication.audit.json]&lt;BR /&gt;
TRANSFORMS-changesourcetype = newsourcetype&lt;/P&gt;

&lt;P&gt;transforms:&lt;BR /&gt;
[newsourcetype]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
FORMAT = sourcetype::Forgerock&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2019 12:07:20 GMT</pubDate>
    <dc:creator>vishaltaneja070</dc:creator>
    <dc:date>2019-07-19T12:07:20Z</dc:date>
    <item>
      <title>using source in props.conf to break the below event based on realm .</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/using-source-in-props-conf-to-break-the-below-event-based-on/m-p/401013#M99293</link>
      <description>&lt;P&gt;I am trying to break the event based on the realm in the below example.&lt;BR /&gt;
My sourcetype "Iam_logs" is defined globally to almost 10 sources.&lt;/P&gt;

&lt;P&gt;Now i want to edit the extraction for one of the source="/opt/app/logs/openam/authentication.audit.json" only.&lt;BR /&gt;
I have defined the props like below &lt;BR /&gt;
[Forgerock]&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
LINE_BREAKER=([\r\n]+)(?=$|{"realm)&lt;BR /&gt;
disabled = false&lt;BR /&gt;
pulldown_type = 1&lt;/P&gt;

&lt;P&gt;[source::"/opt/app/logs/openam/authentication.audit.json"]&lt;BR /&gt;
sourcetype=Forgerock&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;/P&gt;

&lt;P&gt;I have updated this in cluster master and tried to distribute it to the peers.&lt;BR /&gt;
./splunk validate cluster-bundle&lt;BR /&gt;
./splunk validate cluster-bundle --check-restart&lt;BR /&gt;
./splunk show cluster-bundle-status&lt;BR /&gt;
./splunk apply cluster-bundle&lt;/P&gt;

&lt;P&gt;neither the sourcetype reflects ,nor does the events are broke..&lt;/P&gt;

&lt;P&gt;Can anyone advice&lt;/P&gt;

&lt;P&gt;Sample event : &lt;BR /&gt;
{"realm":"/humapp","transactionId":"--462e-950b--80936045","component":"Authentication","eventName":"AM-LOGIN-MODULE-COMPLETED","result":"FAILED","entries":[{"moduleId":"LDAP","info":{"authControlFlag":"REQUIRED","moduleClass":"LDAP","failureReason":"INVALID_PASSWORD","ipAddress":"","authLevel":"0"}}],"userId":"id=@gmail.com,ou=user,o=app,ou=services,dc=openam,dc=,dc=com","principal":["@gmail.com"],"timestamp":"2019-07-18T10:16:16.940Z","trackingIds":["ID"],"_id":"2e-950b-0f75fd67a3ae-80936047"}&lt;/P&gt;

&lt;P&gt;{"realm":"/humapp","transactionId":"25c79b89-329b-4-&lt;BR /&gt;
80936045","component":"Authentication","eventName":"AM-LOGIN-COMPLETED","result":"FAILED","entries":[{"moduleId":"LDAP","info":{"failureReason":"INVALID_PASSWORD","ipAddress":"","authLevel":"0"}}],"userId":"id=@gmail.com,ou=user,o=APP,ou=services,dc=openam,dc=DC,dc=com","principal":["@gmail.com"],"timestamp":"2019-07-18T10:16:16.941Z","trackingIds":["13eb1756f23f3a6302"],"_id":"b-0f75fd67a3ae-80936049"}&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:25:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/using-source-in-props-conf-to-break-the-below-event-based-on/m-p/401013#M99293</guid>
      <dc:creator>Sujithkumarkb</dc:creator>
      <dc:date>2020-09-30T01:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: using source in props.conf to break the below event based on realm .</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/using-source-in-props-conf-to-break-the-below-event-based-on/m-p/401014#M99294</link>
      <description>&lt;P&gt;You can do it like this:&lt;BR /&gt;
you have to use transform to change the sourcetype like below:&lt;BR /&gt;
props:&lt;/P&gt;

&lt;P&gt;[source::/opt/app/logs/openam/authentication.audit.json]&lt;BR /&gt;
TRANSFORMS-changesourcetype = newsourcetype&lt;/P&gt;

&lt;P&gt;transforms:&lt;BR /&gt;
[newsourcetype]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
FORMAT = sourcetype::Forgerock&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 12:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/using-source-in-props-conf-to-break-the-below-event-based-on/m-p/401014#M99294</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-07-19T12:07:20Z</dc:date>
    </item>
  </channel>
</rss>

