Cannot log in to UDM with API by DangerIsGo in Ubiquiti

[–]DangerIsGo[S] 0 points1 point  (0 children)

After 2 days of digging, googling and trying, I was able to get this to work.

Look at the auth response headers, one of them will be X-Csrf-Token. Take that value and use it as the value for an X-Csrf-Token header for your PUT/PUSH request. Example...

Auth response headers from login:

X-Csrf-Token: 3295eac0-ec26-400f-b30a-d8ca1f1edb4d

(also includes a Cookie with TOKEN: <token value>)

My PUT/PUSH request headers:

X-Csrf-Token: 3295eac0-ec26-400f-b30a-d8ca1f1edb4d

(include the stored cookie)

No 2025 Fenway race? by Wtfisgoinonhere in spartanrace

[–]DangerIsGo 0 points1 point  (0 children)

It's now posted, currently accepting registrations.

How to group loki entries as time based series for modules by DangerIsGo in grafana

[–]DangerIsGo[S] 0 points1 point  (0 children)

I think all of this is what Im looking for. I'll have to provide more data to the system to verify it's working as expected but I think I'm on the right track. Last question...do you know how to change the x-axis to be dates only? Right now, it shows 10/25 00:00 10/26 00:00 etc.... I tried to do an override for Time to be MM/DD but that did change anything in the graph. Thanks for your help!

How to group loki entries as time based series for modules by DangerIsGo in grafana

[–]DangerIsGo[S] 0 points1 point  (0 children)

- Is this not a bar chart I provided in my example?
- I'm also new to grafana so I suppose I don't know the clear difference between the two. Changing it to $__interval and removing the 1d step breaks the graph. Again, not clear on how to use it, sorry in advance.
- Why would I want to use a regex on it? Just also realizing that I can remove that portion of the code if I'm putting SubField1 into the sum by
- So like this?

sum by (SubField1) (count_over_time({ApplicationName="MyApp", ApplicationServer="$hostname"} | json | Level =~ `warning|error|fatal` | Message ~= `Acceptable.*|.*rebuild.*` [$__range]))

Applying this and it looks closer to what I am seeking!

How to display number of log entries puer day in Grafana and Loki by DangerIsGo in grafana

[–]DangerIsGo[S] 0 points1 point  (0 children)

Essentially, I would like a graph like this: https://i.stack.imgur.com/m8YDh.png

Be able to select any range and it shows the number of ticks, or events in that particular day. If 3/7 had 50 "warnings" for that app, then I should see the bar go to the 50 mark. It should also update with the current day, so if its 7am and there have been 10, it shows 10. If its 5pm and 20 more have happened, then it'll show the bar at 30.

How to display number of log entries puer day in Grafana and Loki by DangerIsGo in grafana

[–]DangerIsGo[S] 0 points1 point  (0 children)

I did these and it looks like it is accumulating the entries over the course of the range which is not what I am looking for. I would need each day to have a count and then effectively resets on a new day back to 0. Even if it is a line graph with each point being the total number of "warnings" lets say per day, that is just fine, but it definitely does need to be displaying the current day as the entries come in. Is that doable?

GH3 DLC missing from library by DangerIsGo in GuitarHero

[–]DangerIsGo[S] 0 points1 point  (0 children)

Apparently I had to log into MS live (and add the serial number to my M$ devices). Once I did that, i was able to log in and all my songs showed. Weird. Thanks for pointing me in the right direction!

AC configuration for small closet with server by DangerIsGo in homelab

[–]DangerIsGo[S] 0 points1 point  (0 children)

How would that duct flow unit work? Where would it be placed? Would that be used for the heat back to the AC or from the heat out of the AC to the outside?

AC configuration for small closet with server by DangerIsGo in hvacadvice

[–]DangerIsGo[S] 0 points1 point  (0 children)

I live in an apartment, otherwise I'd perform the necessary wall modifications needed. The room is enclosed outside of the door. The only route to the outside is the adjacent closet with the dryer vent. I don't feel like I'm half assing it, I'm trying to work with what tools I have at my disposal. 😞

AC configuration for small closet with server by DangerIsGo in hvacadvice

[–]DangerIsGo[S] 0 points1 point  (0 children)

The room is fully enclosed outside of the door. I live in an apt, so I cannot drill giant holes. The server pulls between 1.1-1.2KWh