<?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: Extract fields from the log in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-the-log/m-p/539916#M90413</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231532"&gt;@mariojost&lt;/a&gt;,&lt;BR /&gt;You can extract these fields at search time using transforms.&lt;BR /&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[firewall]
KV_MODE=none
REPORT-extractfields = mytransform&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mytransform]
REGEX= \:?\s([\s\w]+):\s([^,]+)
FORMAT= $1::$2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2021 11:09:30 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2021-02-15T11:09:30Z</dc:date>
    <item>
      <title>Extract fields from the log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-the-log/m-p/539896#M90412</link>
      <description>&lt;P&gt;I am trying to get logs from a firewall into splunk. Usually i work with regex to extract the fields, but these logs dont come in a predictable manner, so the fields are not always there, or in the same order. So what i try to do is let splunk automatically detect the fields for itself. Given following example raw log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2021-02-15T09:50:22Z %FTD-6-430002: EventPriority: Low, DeviceUUID: ef9c5cce-2400-11eb-a8f2-ce5d579dab29, InstanceID: 5, FirstPacketSecond: 2021-02-15T09:50:22Z, ConnectionID: 26265, AccessControlRuleAction: Allow, SrcIP: 195.180.144.165, DstIP: 172.16.20.86, SrcPort: 49609, DstPort: 443, Protocol: tcp, IngressInterface: INT_DMZ_External, EgressInterface: INT_LAN, IngressZone: DMZ_External, EgressZone: LAN, IngressVRF: Global, EgressVRF: Global, ACPolicy: Merbag Default Access Control Policy, AccessControlRuleName: WAP2LAN, Prefilter Policy: Merbag Default Prefilter Policy, Client: SSL client, ApplicationProtocol: HTTPS, InitiatorPackets: 3, ResponderPackets: 1, InitiatorBytes: 389, ResponderBytes: 70, NAPPolicy: Balanced Security and Connectivity, URLReputation: Unknown, URL: https://adfs.company.com &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried lots of things in props.conf but sadly, nothing seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[firewall]
category = Network &amp;amp; Security
TIME_FORMAT = %Y-%m-%dT%H:%M:%SZ
TZ = Europe/London
KV_MODE = auto
FIELD_DELIMITER = ,
HEADER_FIELD_DELIMITER = :&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the first 3 lines work great, but the last 3 lines dont seem to work at all. Sadly, there is not onboard GUI in splunk where i can run the config against a log and see the output live. Its just editing the config file and restarting the service over and over again. It would be helpful if there were actual examples (config &amp;amp; example log) in the documentation.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 10:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-the-log/m-p/539896#M90412</guid>
      <dc:creator>mariojost</dc:creator>
      <dc:date>2021-02-15T10:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract fields from the log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-the-log/m-p/539916#M90413</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231532"&gt;@mariojost&lt;/a&gt;,&lt;BR /&gt;You can extract these fields at search time using transforms.&lt;BR /&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[firewall]
KV_MODE=none
REPORT-extractfields = mytransform&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mytransform]
REGEX= \:?\s([\s\w]+):\s([^,]+)
FORMAT= $1::$2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 11:09:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-fields-from-the-log/m-p/539916#M90413</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-02-15T11:09:30Z</dc:date>
    </item>
  </channel>
</rss>

