First of all thanks a lot for this tutorial. I followed this approach in one of my existing project .. but it was not working - Then i cloned your project and it was working .... So after lot of trials i found out that the dependencies in pom.xml should be in a particular order .. then it started working . My project had other dependencies as well .. then finally i aligned the order of dependencies as per your pom.xml and then added my extra dependencies in the end. This is strange and i dont know the reason why is it so .. but still documenting if someone else face similar problems
@@enggadda same issue...I also followed the approach you mentioned..but not getting logs in splunk. I checked the logs using index, eg : index="spring_dev"
@enggadda I am getting few errors as 2024-04-02T09:38:37.613868600Z main ERROR Unable to invoke factory method in class com.splunk.logging.HttpEventCollectorLog4jAppender for element SplunkHttp: java.lang.NoClassDefFoundError: okhttp3/Callback java.lang.reflect.InvocationTargetException 2024-04-02T09:38:37.613868600Z main ERROR Null object returned for SplunkHttp in Appenders. 2024-04-02T09:38:37.622874900Z main ERROR Unable to locate appender "http" for logger config "root"
@@poojalekshmibalu8140 sorry for late reply as i was not getting the notification from youtube for comments , Now can you try a search like index="spring_dev*" or something what you are printing in your logs like "XYZ*"
It worked for me..thanks alot for your time..keep up the good work
thanks
Thank you so much for the video, very helpful
Welcome, please support the channel
Thanks for the video i have created index and configured log but not showing i followed your steps now i can see the logs thank you so much
Thanks for comment ,if you like it please like and subscribe, I upload development videos
im also follwed same steps . im not able to see logs
Nice video...just want to ask one question the logs are stored in both places i.e in local files and splunk dashboard also
First of all thanks a lot for this tutorial. I followed this approach in one of my existing project .. but it was not working - Then i cloned your project and it was working .... So after lot of trials i found out that the dependencies in pom.xml should be in a particular order .. then it started working . My project had other dependencies as well .. then finally i aligned the order of dependencies as per your pom.xml and then added my extra dependencies in the end. This is strange and i dont know the reason why is it so .. but still documenting if someone else face similar problems
its always welcoming steps to help someone
Thanks for the comment
@sanjayranga2683
Can you please share the order of dependencies from your working pom.xml
Thnak you sir
Welcome , Thanks for Support
It was not working for me. I later check and "disabled SSL" in "Global Settings". Post this, the logs started flowing.
I followed same approach, everything is working fine but dont know why i cannot getting logs in splunk, Please help
Sure can you please tell me how you are checking the logs ? Are you searching with the statement that you are printing in your java classes ?
@@enggadda same issue...I also followed the approach you mentioned..but not getting logs in splunk.
I checked the logs using index, eg : index="spring_dev"
@enggadda
No, by splunk query "index=idxName"
@enggadda
I am getting few errors as
2024-04-02T09:38:37.613868600Z main ERROR Unable to invoke factory method in class com.splunk.logging.HttpEventCollectorLog4jAppender for element SplunkHttp: java.lang.NoClassDefFoundError: okhttp3/Callback java.lang.reflect.InvocationTargetException
2024-04-02T09:38:37.613868600Z main ERROR Null object returned for SplunkHttp in Appenders.
2024-04-02T09:38:37.622874900Z main ERROR Unable to locate appender "http" for logger config "root"
@@poojalekshmibalu8140 sorry for late reply as i was not getting the notification from youtube for comments , Now can you try a search like index="spring_dev*" or something what you are printing in your logs like "XYZ*"
Sir please provide the link of that video for making project 16:52
ruclips.net/video/e8vJ01ieXfs/видео.html
please find it
Logs are printed correctly in the console without any Error, but not getting pushed to the Splunk server.
Please help me, sir
Try cloning the project and then see
Eventhough I cloned your project but the problem still happen
please make a video how to do that integration splunk with python apllication
Sure will do it in future
Sir please do python related splunk tutorials its really helpful
Sure , will cover this in future
Logs are printed correctly in the console without any Error, but not getting pushed to the Splunk server.
Please help
Can you please let me know how you are checking logs in splunk
@enggadda
By splunk query index=idxName
i followed same approach ,everything is working fine but dont know why i cannt getting logs in splunk ,please help
take a look at dependencies in pom.xml and log4j-spring.xml file and see if you are doing everything right .
@@enggadda I've pulled your repo, and I can't see logs as well
did you managed to fix this issue?
@@vladstarichenko4937 , its working for me. i can't say why its not working for you.
@@enggadda ofc as you just tailored the other tutorial... I believe the reason is the firewall( no offence
Select source type mai sl4j show nhi ho rha
this is an exact copy of Javatechie channel which was made two years ago.