<?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 extract values depending on field, props.conf, transforms.conf, and regex? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-values-depending-on-field-props-conf-transforms/m-p/644835#M109745</link>
    <description>&lt;P&gt;One possible solution is of course the one shown by &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt; but there is more to it than meets the eye. There are two different kinds of events here so it would probably be best to define two separate definitions for field extractions. Or even two separate sourcetypes.&lt;/P&gt;&lt;P&gt;As a side note - that application log seems to be overly complicated - I'd try to work with the app team to make them log in a less nested and easier parseable format.&lt;/P&gt;</description>
    <pubDate>Sun, 28 May 2023 10:05:34 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2023-05-28T10:05:34Z</dc:date>
    <item>
      <title>How to extract values depending on field, props.conf, transforms.conf, and regex?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-values-depending-on-field-props-conf-transforms/m-p/644149#M109680</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;Kindly check with below logs&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;[19-May-2023 06:15:55.341][INFO] abc@abc.com@ABC-CB-NOC, 1.1.1.1:61, create, user:Test, appliances: ALR-prod1 , changeset:devices { device{ALR-prod1} { config { orgs { &lt;STRONG&gt;org-services{ATCHYUTH-NOC}&lt;/STRONG&gt; { user-identification { local-database { users { + user{Test} { + email-address test@abc.com + passwd + status CREATED} } } } } } } } }&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;[28-Jun-2022 08:35:48.010][INFO] abc@abc.com@ABC-CB-NOC, 1.1.1.1:61, create, authentication-method:Dummy-Auth, template:Access-Template , changeset:devices { template{Access-Template} { config { orgs { &lt;STRONG&gt;org-services{Atchyuth-NOC}&lt;/STRONG&gt; { user-identification { authentication-methods { + authentication-method{Dummy-Auth} { + method { + local }} } } } } } } }&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;[28-Sep-2020 12:13:07.137][INFO] abc@abc.com@ABC-CB-NOC, CLI 'set devices template ABC config orgs &lt;STRONG&gt;org-services ATCHYUTH-NOC&lt;/STRONG&gt; security captive-portal url abc.net'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;[28-Jun-2022 08:35:48.010][INFO] abc@abc.com@ABC-CB-NOC, 1.1.1.1:53, create, authentication-method:Dummy-Auth, template:Access-Template, changeset:devices { template{Access-Template} { config { orgs { &lt;STRONG&gt;org-services{Atchyuth}&lt;/STRONG&gt; { user-identification { authentication-methods { + authentication-method{Dummy-Auth} { + method { + local }} } } } } } } }&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;[28-Sep-2020 12:13:07.137][INFO] abc@abc.com@ABC-CB-NOC, CLI 'set devices template ABC config orgs &lt;STRONG&gt;org-services ATCHYUTH&lt;/STRONG&gt; security portal url abc.net'&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Based on above logs we have one common field org-services. Depending on org-services need to create new field and extract the values to the field. Kindly help me in props.conf and transforms.conf and also let me know the regex pattern that will create a new field based on org-services.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 04:37:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-values-depending-on-field-props-conf-transforms/m-p/644149#M109680</guid>
      <dc:creator>Atchyuth_P</dc:creator>
      <dc:date>2023-05-23T04:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract values depending on field, props.conf, transforms.conf, and regex?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-values-depending-on-field-props-conf-transforms/m-p/644815#M109738</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you could try this&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[&amp;lt;your sourcetype here&amp;gt;]
REPORT-org_services = org_services&lt;/LI-CODE&gt;&lt;P&gt;and transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[org_services]
REGEX = org-services[\s\{]*(?&amp;lt;org_services&amp;gt;[^\}\s]+)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Another way is use only props.conf with EXTRACT instead of REPORT. Especially if you use this only in one sourcetype then maybe EXTRACT is better option.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 13:52:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-values-depending-on-field-props-conf-transforms/m-p/644815#M109738</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-05-27T13:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract values depending on field, props.conf, transforms.conf, and regex?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-values-depending-on-field-props-conf-transforms/m-p/644835#M109745</link>
      <description>&lt;P&gt;One possible solution is of course the one shown by &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt; but there is more to it than meets the eye. There are two different kinds of events here so it would probably be best to define two separate definitions for field extractions. Or even two separate sourcetypes.&lt;/P&gt;&lt;P&gt;As a side note - that application log seems to be overly complicated - I'd try to work with the app team to make them log in a less nested and easier parseable format.&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2023 10:05:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-values-depending-on-field-props-conf-transforms/m-p/644835#M109745</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-05-28T10:05:34Z</dc:date>
    </item>
  </channel>
</rss>

