Is it possible to integrate Log4net and Splunk without a Forwarder? - umbraco

I'm trying to send Umbraco logs into Splunk, and I'm investigating a way to do this without using a forwarder. We are hosting Umbraco in Azure.
I'm looking into Log4net RemoteAppender, but it doesn't seem to be a way to authenticate against Splunk.
Is there an other option?
I found this options, but all of them seem to need installing some library or writing code, and I'm looking for an option that only needs changing the config file "log4net.config":
http://dev.splunk.com/view/splunk-loglib-dotnet/SP-CAAAEX4
https://github.com/AlanBarber/log4net.Appender.Splunk
And this answer suggest using a forwarder: https://answers.splunk.com/answers/94364/plugin-support-for-log4net.html
Thanks in advance for your help.

There won't be any other ways. Log4net should have to provide an integrated approach like other logging technics serilog, Nlog etc.

Related

How to customize guacamole login page?

good day to all,
My question is very simple, I would like to customize the guacamole logging-in page and remove the logo of guacamole the problem is I have no idea where to find the HTML file of the login page. do you have any idea how to find it and where, I am new to guacamole and the search on the internet has no clear info about it?
Guacamole front-end runs on AngularJS (Angular 1 I think some people call it). You will probably need some understanding of the framework to edit it.
I can give you where to start, but not really a full guide(not the best with Angular).
Look inside the /guacamole/src/main/frontend/src/app directory inside your project (here is the link on Github), you will find where the general structure of the front-end is. The modules, directives and all that.
Specifically for the login page, go to your /guacamole/src/main/frontend/src/app/login/templates/login.html file inside your project. (You can find it here) on Github.
Hope this helped and the best of luc :)
There is a popular guacamole-client replacer called guacamole-lite which allows you to integrate guacamole easily into your frontend.
I also wrote a C# version of that replacer with ready to use docker image. Check it out: guacamole-sharp

Does ELMAH provide any methods to READ the errors from the database?

I am working with ASP.Net C# application and using ELMAH to log errors to SQL database.
I need to retrieve the errors from the database, does ELMAH provide any methods to search an error (and return something such as JSON)? Or does ELMAH only logs the errors, and reading part has to be donelike any other database read?
I have checked online and at https://elmah.github.io/ . I could not find any lead to the solution of this issue.
Thanks in advance for any answers!
ELMAH provides a simple UI for browsing errors, available on the URL /elmah.axd (or /elmah if you are using the elmah.mvc NuGet package). Searching isn't supported, but you can export errors from the UI.

Cookie authentication in websharper + suave + OWIN

As part of an evaluation process for a commercial project I'm searching for any full fledged example of authentication/authorization using the websharper stack. I'd like to use OWIN, since it seems to be a well designed protocol, but I'm open to alternatives.
Some requirements:
use Mono
use the Suave server.
For now, we have been trying to adapt this tutorial for the websharper toolchain: https://www.codeproject.com/tips/849113/four-easy-steps-to-set-up-owin-for-form-authentica
This is what we currently have: https://github.com/Denommus/cookies-problem/blob/master/Main.fs
I would also like to mention that the default method ctx.UserSession.LoginUser has this issue: https://github.com/intellifactory/websharper/issues/647
But the cookies file is not being generated for some reason, probably because we're missing something obvious. Anyone able to help?
EDIT
I think I figured out the reason why the cookies file is not being generated: the Suave server doesn't actually run OwinStartup, so I need to figure out another way to configure the IAppBuilder of my application. But I still don't know how to do it, so if anyone can help I'll appreciate.
EDIT 2
I think I fixed the configuration of OWIN in my application, but I still don't have cookies being generated.

How can I access an ASP.NET MVC application through IIS Express while using OpenCover?

I am using OpenCover to cover a very simple ASP.NET MVC application. It's basically just a shell application: a handful of controller methods and not much else.
I am attempting to user OpenCover to launch an instance of IIS 8.0 Express, through which I will run the MVC application. However, when I try to browse to the site, I get an "Access is denied" 401.2 error. I have tried numerous things to solve this, mostly revolving around different ways to enable Windows Authentication. Most of my attempts have been based on advice from questions like this. Despite my efforts, I'm still getting this 401.2 error. Also, I should point out that when running this application through VS2013, I can access the site just fine.
One final detail is that in order to use OpenCover, I cannot use the full version of IIS because OpenCover and IIS don't work well together, so IIS Express is a must. If there is any sort of configuration details I can provide you with in order for you to better help me, please let me know. Thank you!

Deploying an app in private beta without any coding

I'm working on a Grails 2.0 app, deploying it on Heroku, with a launchpage on kickofflabs and a DNS on CloudFlare. I'm looking for a simple way to password-protect my app in private beta and give access to it only to a few selected people, all that without adding any code to my app.
Back when I used Cloudbees, it had a nice private mode to do just that. But I couldn't find any equivalent in Heroku, either natively or using an add-on. I also had a look at CloudFlare apps but no success there either.
Does anyone know any simple way to do that? It seems generic enough to me.
There's the Invitation Only plugin
Never used it myself though...
And not sure if it needs updating for 2.0 :-/
And I guess this needs some coding... So this answer basically doesn't answer your question... Sorry about that...
Can you not front it with Apache and use mod_jk to connect to your Tomcat with the Grails application. This way you can have .htaccess do the access control?

Resources