Getting Data In

Linebreaks in log4j files with splunk forwarder

Ido
New Member

Hi,

I have a log4j file where the lines are nog parsed correct.

can anyone help me with creating a sourcetype for splunk

When there is a date in the xml the line is broken (red) because of:

props.conf in de splunkforwarder client.

[log4j]
BREAK_ONLY_BEFORE = \d\d?:\d\d:\d\d
pulldown_type = true
maxDist = 75
category = Application

What can i do to make this one line and only break when the line begins with a date

21 Jan 2021 15:11:25.832 [publicerenExecutorService18] INFO nl.anwb.flow.connector.publicerenhvstatus.PublicerenHvStatusConnectorStub - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><PublicerenHulpverlening... xmlns="http://anwb.nl/webservices/publiceren_hulpverlening_status_request/3">
<Header>
<BusinessProcesNaam>DistributieHulpverleningStatus</BusinessProcesNaam>
<BusinessTransactieReferentie>xxxxx</BusinessTransactieReferentie>
<BronSysteem>
<BronSysteemNaam>xx</BronSysteemNaam>
</BronSysteem>
<Volgorde>
<Indicator>2021-01-21T14:11:25.825Z</Indicator>
</Volgorde>
<AfleverKanaal>
<Code>xxxx</Code>
<AfleverPartij>
<Naam>xxxx.</Naam>
</AfleverPartij>
</AfleverKanaal>
<AfleverKanaal>
<Code>HV_ONLINE_INZAGE</Code>
<AfleverPartij>
<Naam>xxxx</Naam>
</AfleverPartij>
</AfleverKanaal>
<AfleverKanaal>
<Code>xx</Code>
<AfleverPartij>
<Naam>xxx</Naam>
</AfleverPartij>
</AfleverKanaal>
</Header>
</PublicerenHulpverleningStatusRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>

 

 

Kind regards

Ido Dijkstra

Labels (4)
0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @Ido,

Please try below;

[log4j]
TIME_FORMAT = %d %b %Y %H:%M:%S.%3N 
pulldown_type = true
maxDist = 75
category = Application

 

If this reply helps you an upvote is appreciated.

If this reply helps you an upvote and "Accept as Solution" is appreciated.
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...