<?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: LOG4J CIM? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472112#M132837</link>
    <description>&lt;P&gt;Hi @mitag,&lt;/P&gt;

&lt;P&gt;then may be this link is what you need - &lt;STRONG&gt;a list of standardized field names&lt;/STRONG&gt; -  this is a recent (just a week ago!) addition to the CIM documentation - an overview of all field names per associated data model:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/CIM/4.15.0/User/CIMfields"&gt;https://docs.splunk.com/Documentation/CIM/4.15.0/User/CIMfields&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I hope it is what you need!&lt;/P&gt;

&lt;P&gt;Let me know how it went.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2020 18:07:23 GMT</pubDate>
    <dc:creator>PavelP</dc:creator>
    <dc:date>2020-04-14T18:07:23Z</dc:date>
    <item>
      <title>LOG4J CIM?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472107#M132832</link>
      <description>&lt;P&gt;A number of applications and services in our environment use LOG4J for logging. Is there a CIM (Common Information Model) for LOG4J log types - or perhaps just the accepted / &lt;STRONG&gt;standardized field names&lt;/STRONG&gt;? (The idea is to properly set up field extraction correctly the 1st time so we don't have to do it again in the future.)&lt;/P&gt;

&lt;P&gt;In other words what I need first and foremost are &lt;STRONG&gt;standardized field names&lt;/STRONG&gt; for this log type - and if there is anything else that needs to be done to have a clean and performant field extraction for this log type that'll last a while w/o needing major revisions that might wreak havoc on existing dashboards, reports and searches.&lt;/P&gt;

&lt;P&gt;Event examples:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2020-04-13 15:20:53,379 ERROR [com.somejavaapp.exec.Server] (pool-1-thread-1) - Caught exception producing output
java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
Show all 15 lines
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2020-04-13 15:20:53,379 ERROR [com.somejavaapp.exec.Server] (Thread-149821) - Exception while sending progress data
java.net.SocketException: Connection reset by peer: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
Show all 8 lines
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;... etc... So perhaps the field names should be as follows?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time                           2020-04-13 15:20:53,379
severity? log_level?            ERROR
java_class?                     [com.somejavaapp.exec.Server]
java_class_package?             com.somejavaapp.exec
java_class_package_namespace?   com.somejavaapp

thread?                         (pool-1-thread-1)
                                (Thread-149821)

message?      Caught exception producing output
exception?    java.net.SocketException: Connection reset by peer: socket write error

java_traces?
            at java.net.SocketOutputStream.socketWrite0(Native Method)
            at java.net.SocketOutputStream.socketWrite(Unknown Source)
            at java.net.SocketOutputStream.write(Unknown Source)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 01:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472107#M132832</guid>
      <dc:creator>mitag</dc:creator>
      <dc:date>2020-04-14T01:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: LOG4J CIM?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472108#M132833</link>
      <description>&lt;P&gt;&lt;A href="https://dev.splunk.com/enterprise/docs/java/logging-java/howtouseloggingjava/enablelogtcpjava/"&gt;https://dev.splunk.com/enterprise/docs/java/logging-java/howtouseloggingjava/enablelogtcpjava/&lt;/A&gt;&lt;BR /&gt;
I don't know the detail.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 01:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472108#M132833</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-14T01:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: LOG4J CIM?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472109#M132834</link>
      <description>&lt;P&gt;Hello @mitag,&lt;/P&gt;

&lt;P&gt;I think you mean a CIM parser for log4j logs, not a CIM, because CIM organized by domain of interest (like Changes, Authentication, etc.) and not by logging method (syslog, log4j, sql, etc.).&lt;/P&gt;

&lt;P&gt;A general parser configuration for log4j logs could look like this:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_log_sourcetype]
SHOULD_LINEMERGE        = false
MAX_TIMESTAMP_LOOKAHEAD = 30
TIME_FORMAT             = %Y-%m-%d %H:%M:%S,%3N
TIME_PREFIX             = ^
LINE_BREAKER            = ([\r\n]+)\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d,\d\d\d
EVENT_BREAKER_ENABLE    = true
EVENT_BREAKER           = ([\r\n]+)\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d,\d\d\d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then you have to identifiy a particular CIM to map. In your case the events contain some network exceptions - there are no matching CIMs for this. Check these links for more information:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/CIM/4.15.0/User/Overview"&gt;https://docs.splunk.com/Documentation/CIM/4.15.0/User/Overview&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/CIM/4.15.0/User/Howtousethesereferencetables"&gt;https://docs.splunk.com/Documentation/CIM/4.15.0/User/Howtousethesereferencetables&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 05:24:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472109#M132834</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-14T05:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: LOG4J CIM?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472110#M132835</link>
      <description>&lt;P&gt;Thanks Pavel!&lt;/P&gt;

&lt;P&gt;This part of CIM is what I am looking for:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;The CIM helps you to normalize your data to match a common standard, using the &lt;STRONG&gt;same field names&lt;/STRONG&gt; and event tags for equivalent events from different sources or vendors.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I.e. field names that are in line with common standards - or at least with what others do with log4j events.&lt;/P&gt;

&lt;P&gt;So yes, it is a CIM that I am looking for and not a CIM parser - even if field names are just a small part of what a CIM is.&lt;/P&gt;

&lt;P&gt;(I probably didn't write my question very clearly - revised it - hope it's clearer now.)&lt;/P&gt;

&lt;P&gt;Thanks for looking into it!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 14:10:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472110#M132835</guid>
      <dc:creator>mitag</dc:creator>
      <dc:date>2020-04-14T14:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: LOG4J CIM?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472111#M132836</link>
      <description>&lt;P&gt;Thanks - this isn't it. The logs are already in Splunk - forwarded via SUFs - so I don't need a TCP input to get them into Splunk.&lt;/P&gt;

&lt;P&gt;What I need to extract fields and &lt;EM&gt;name&lt;/EM&gt; them in line with common standards - i.e. using a CIM for log4j if one exists - or using field names that others are using. I probably didn't write my question very clearly - will see if I can revise it.&lt;/P&gt;

&lt;P&gt;Thanks for looking into it!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 14:19:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472111#M132836</guid>
      <dc:creator>mitag</dc:creator>
      <dc:date>2020-04-14T14:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: LOG4J CIM?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472112#M132837</link>
      <description>&lt;P&gt;Hi @mitag,&lt;/P&gt;

&lt;P&gt;then may be this link is what you need - &lt;STRONG&gt;a list of standardized field names&lt;/STRONG&gt; -  this is a recent (just a week ago!) addition to the CIM documentation - an overview of all field names per associated data model:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/CIM/4.15.0/User/CIMfields"&gt;https://docs.splunk.com/Documentation/CIM/4.15.0/User/CIMfields&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I hope it is what you need!&lt;/P&gt;

&lt;P&gt;Let me know how it went.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 18:07:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472112#M132837</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-14T18:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: LOG4J CIM?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472113#M132838</link>
      <description>&lt;P&gt;many thanks - but not finding much there... E.g. not seeing anything relevant to threads, java classes, namespaces, java traces...&lt;/P&gt;

&lt;P&gt;Appreciate your looking into it.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 19:22:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472113#M132838</guid>
      <dc:creator>mitag</dc:creator>
      <dc:date>2020-04-14T19:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: LOG4J CIM?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472114#M132839</link>
      <description>&lt;P&gt;that is what I mean from the beginning - there are currently no matching CIM for your log examples.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 20:03:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472114#M132839</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-04-14T20:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: LOG4J CIM?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472115#M132840</link>
      <description>&lt;P&gt;Maybe not in Splunk docs or CIM repo - but there must be other people logging java applications using log4j with a similar log structure - and extracting fields. The question wasn't, "does Splunk offer a CIM for log4j?", it was "LOG4J CIM?" with the implication of, "how do I zero in on the best possible approximation of such a CIM?". If you search the interwebs for pieces and bits of the logs I posted - you'll see a bunch of people using similar log structures.&lt;/P&gt;

&lt;P&gt;It's those people using Splunk that I am hoping to engage with this question, not those who would say "Splunk can't help you" or "I can't help you".&lt;/P&gt;

&lt;P&gt;Thank you for the understanding &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2020 20:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/LOG4J-CIM/m-p/472115#M132840</guid>
      <dc:creator>mitag</dc:creator>
      <dc:date>2020-04-14T20:22:30Z</dc:date>
    </item>
  </channel>
</rss>

