<?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 Log4g (via Syslog) not working for multiline indexing? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Log4g-via-Syslog-not-working-for-multiline-indexing/m-p/106719#M22451</link>
    <description>&lt;P&gt;I'm working on trying to get our application server's log4j working so that events will show up in searches for multiline events as a single event. There is also a problem where there are "..." breaks where the multiple lines should just continue on. &lt;/P&gt;

&lt;P&gt;Here is an example output:&lt;/P&gt;

&lt;PRE&gt;
2013-07-25 14:31:49,813 [pool-4-thread-1] INFO  net.app.security.Filter (269) - Exiting ClusteredLogoutFilter#sessionCreated - Timestamp : 1374777109813
----------------------------
ID: 843352
Address: /path/to/application
Http-Method: GET
Content-Type: application/json
Headers: {content-type=[application/json], connection=[Keep-Alive], host=[myhost.com], accept-language=[en-US,en;q=0.8], x-forwarded-for=[1.1.1.1, 2.2.2.2], optr_cxt=[01000f0001eb4515a7-bdfc-42a0-8b4a-498d89c...
...05a4008cc0a81-7ab4-4e73-81b6-0e7358e69e6eb2edbc79-1b21-4e3a-bcf1-0e1ecfa297031       ;usraddr=0.0.0.0;usrname=;], x-forwarded-host=[myserver, mytest], user-agent=[Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36], x-dds-access-path=[wan, prv], cookie=[JSESSIONID=C4E29C6715F5DDD7475CD2554EC4050B.myserver.env; __utma=43946937.444067536.1371496959.1371496959.1371562971.2; __utmz=43946937.1371496959.1.1.utmcsr=(...
...direct)|utmccn=(direct)|utmcmd=(none); LKC=22; LKCD=ltr; MODULEBASE=viewport; PAGEBASE=viewport%2Flogin%2F; MODULENAME=component; STGT=TGT-64657-z0sbkEt6gIbNzSobYudbakapZxoer5To3wI0hRkIsvU6mYPJLb-cas; osv-user-name=somebody; osv-user-remember=true; osv-user-org-continent=NA; SSOcookie=6C3E0895C362D9D2F76272B5930EF414.service; AppName=myapp; AppEnv=P], x-ssl=[0, 0], referer=...
...[somehost?os-cid=40006], accept-encoding=[gzip,deflate,sdch], x-forwarded-server=[fwd.server, otherhost], Content-Type=[application/json], Accept=[application/json]}
--------------------------------------
&lt;/PRE&gt;

&lt;P&gt;I assume that this is a problem within my log4j/syslog configuration on the sending server that is causing this?&lt;/P&gt;

&lt;P&gt;The other thing, which I'm not sure that it's an issue is, say I search on "1.1.1.1" , only the line that has this will show up in the search, not the full set of lines that I'm expecting. I would have click on this entry and then do a "Show Source" to see the full lines.&lt;/P&gt;

&lt;P&gt;Any ideas would be great. I have this in my config:&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
[log4j] &lt;BR /&gt;
TRANSFORMS--strip-syslog = syslog-header-stripper-ts-host&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;[log4j]&lt;BR /&gt;
BREAK_ONLY_BEFORE =&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = true&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N&lt;BR /&gt;
TIME_PREFIX = ^&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 25&lt;BR /&gt;
&lt;/P&gt;

&lt;P&gt;Thanks!&lt;BR /&gt;
Jeff&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:26:10 GMT</pubDate>
    <dc:creator>jeffwarn</dc:creator>
    <dc:date>2020-09-28T14:26:10Z</dc:date>
    <item>
      <title>Log4g (via Syslog) not working for multiline indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Log4g-via-Syslog-not-working-for-multiline-indexing/m-p/106719#M22451</link>
      <description>&lt;P&gt;I'm working on trying to get our application server's log4j working so that events will show up in searches for multiline events as a single event. There is also a problem where there are "..." breaks where the multiple lines should just continue on. &lt;/P&gt;

&lt;P&gt;Here is an example output:&lt;/P&gt;

&lt;PRE&gt;
2013-07-25 14:31:49,813 [pool-4-thread-1] INFO  net.app.security.Filter (269) - Exiting ClusteredLogoutFilter#sessionCreated - Timestamp : 1374777109813
----------------------------
ID: 843352
Address: /path/to/application
Http-Method: GET
Content-Type: application/json
Headers: {content-type=[application/json], connection=[Keep-Alive], host=[myhost.com], accept-language=[en-US,en;q=0.8], x-forwarded-for=[1.1.1.1, 2.2.2.2], optr_cxt=[01000f0001eb4515a7-bdfc-42a0-8b4a-498d89c...
...05a4008cc0a81-7ab4-4e73-81b6-0e7358e69e6eb2edbc79-1b21-4e3a-bcf1-0e1ecfa297031       ;usraddr=0.0.0.0;usrname=;], x-forwarded-host=[myserver, mytest], user-agent=[Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36], x-dds-access-path=[wan, prv], cookie=[JSESSIONID=C4E29C6715F5DDD7475CD2554EC4050B.myserver.env; __utma=43946937.444067536.1371496959.1371496959.1371562971.2; __utmz=43946937.1371496959.1.1.utmcsr=(...
...direct)|utmccn=(direct)|utmcmd=(none); LKC=22; LKCD=ltr; MODULEBASE=viewport; PAGEBASE=viewport%2Flogin%2F; MODULENAME=component; STGT=TGT-64657-z0sbkEt6gIbNzSobYudbakapZxoer5To3wI0hRkIsvU6mYPJLb-cas; osv-user-name=somebody; osv-user-remember=true; osv-user-org-continent=NA; SSOcookie=6C3E0895C362D9D2F76272B5930EF414.service; AppName=myapp; AppEnv=P], x-ssl=[0, 0], referer=...
...[somehost?os-cid=40006], accept-encoding=[gzip,deflate,sdch], x-forwarded-server=[fwd.server, otherhost], Content-Type=[application/json], Accept=[application/json]}
--------------------------------------
&lt;/PRE&gt;

&lt;P&gt;I assume that this is a problem within my log4j/syslog configuration on the sending server that is causing this?&lt;/P&gt;

&lt;P&gt;The other thing, which I'm not sure that it's an issue is, say I search on "1.1.1.1" , only the line that has this will show up in the search, not the full set of lines that I'm expecting. I would have click on this entry and then do a "Show Source" to see the full lines.&lt;/P&gt;

&lt;P&gt;Any ideas would be great. I have this in my config:&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
[log4j] &lt;BR /&gt;
TRANSFORMS--strip-syslog = syslog-header-stripper-ts-host&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;[log4j]&lt;BR /&gt;
BREAK_ONLY_BEFORE =&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = true&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N&lt;BR /&gt;
TIME_PREFIX = ^&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 25&lt;BR /&gt;
&lt;/P&gt;

&lt;P&gt;Thanks!&lt;BR /&gt;
Jeff&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:26:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Log4g-via-Syslog-not-working-for-multiline-indexing/m-p/106719#M22451</guid>
      <dc:creator>jeffwarn</dc:creator>
      <dc:date>2020-09-28T14:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Log4g (via Syslog) not working for multiline indexing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Log4g-via-Syslog-not-working-for-multiline-indexing/m-p/106720#M22452</link>
      <description>&lt;P&gt;It looks like the syslog timestamp/hostname was not being stripped out in some cases.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2013 20:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Log4g-via-Syslog-not-working-for-multiline-indexing/m-p/106720#M22452</guid>
      <dc:creator>jeffwarn</dc:creator>
      <dc:date>2013-07-29T20:46:35Z</dc:date>
    </item>
  </channel>
</rss>

