Deployment Architecture

Index Line Breaks

Daniel_Edwards
Explorer

Hello,

I'm getting input from a log file the contents of which are a long listing a directory containing .rpm files. When I search on the source or sourcetype I get a singe event for every line in the log file. When I search on the index I directed the input to go to, it lumps entries together:

-rw------- 1 root root 1.2M Sep  3 13:17 cyrus-sasl-2.1.22-7.el5_8.1.x86_64.rpm
-rw------- 1 root root 127K Sep  3 13:15 cyrus-sasl-lib-2.1.22-7.el5_8.1.i386.rpm

Is one event instead of two.

props.conf looks like this:

[sourcetype::RHEL_mon_log]
MUST_BREAK_AFTER = <\Q.rpm\E>
SHOULD_LINEMERGE=true

Any suggestions?

Tags (2)
0 Karma
1 Solution

Daniel_Edwards
Explorer

Via Ayn:

  Confirm that the sourcetype in your props.conf matches what sourcetype is actually in splunk.

View solution in original post

0 Karma

Daniel_Edwards
Explorer

Via Ayn:

  Confirm that the sourcetype in your props.conf matches what sourcetype is actually in splunk.
0 Karma

Daniel_Edwards
Explorer

I think you have have helped me solve the problem! I believe the sourcetype I had in my props.conf was incorrect. It needed to be [rhel_update_log] and not [RHEL_mon_log] Thank you very much.

0 Karma

Ayn
Legend

OK, and the other search, for source/sourcetype?

Daniel_Edwards
Explorer

The search I'm using is "index=rhel_update_mon". I'm relatively new to splunk so I'm trying to do the KISS thing and move on once I have a good understanding of the basics.

0 Karma

Ayn
Legend

I can see that, because there's no reason why it would act like that. Could you please post more details about your searches?

Daniel_Edwards
Explorer

I know, I had a co-worker of mine who's more knowledgeable than I take a look and he was confused as well.

0 Karma

Ayn
Legend

I don't really get it - you're directing these logs to a particular index, and you get different results if you do "index=theindex" than if you do "sourcetype=thesourcetype"?? That sounds very weird to me...

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!

Unlocking Unified Insights: New Gigamon Federated Search App for Splunk

In today’s data-heavy environment, organizations are caught in a data distribution dilemma. As data volumes ...

GA: New Data Management App in Splunk Platform

Streamlining Data Management: Introducing a unified experience in Splunk Managing data at scale shouldn’t feel ...

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 ...