(Untitled)
It seems like you didn’t finish your sentence. Could you please provide the title for the article you’d like me to write?Read More →
It seems like you didn’t finish your sentence. Could you please provide the title for the article you’d like me to write?Read More →
Have you ever been asked to monitor PowerBI gateway status? They need to receive alert when the gateway is offline. Or it’s just simply a dashboard to show the gateway status with its data such as hostname, version? The most common approach will be writing some scripts, pulling the data to logs and ingest it into Splunk. Why not using Splunk? Splunk can’t not run curl command by default, but if you install the Webtools Addons then it will open a new world. Below is my query to get PowerBI gateway status directly from Splunk, then i ingest that result into Splunk index. In orderRead More →
First, we need to update our apt sources.list /etc/apt/sources.list deb http://archive.debian.org/debian-security stretch/updates main contrib non-free Then run this command apt-get install -y libpng-dev libjpeg-dev libfreetype6-dev && docker-php-ext-configure gd –with-freetype-dir=/usr/include/freetype2 –with-png-dir=/usr/include –with-jpeg-dir=/usr/include && docker-php-ext-install gdRead More →
It’s old, but it’s still helpful. https://github.com/uglide/azure-content/tree/master/articles/application-insights This is from Microsoft – https://github.com/MicrosoftDocs/azure-docs/tree/main/articles/azure-monitorRead More →
This is the script you will need to get the start and end date of last quarter $start_date = (new DateTime(‘first day of -‘ . (((date(‘n’) – 1) % 3) + 3) . ‘ month’))->format(‘Y-m-d’); # first day of previous quarter $end_date = (new DateTime(‘last day of -‘ . (((date(‘n’) – 1) % 3) + 1) . ‘ month’))->format(‘Y-m-d’); # last day of previous quarter Read More →
$money=”100 dollars”; $money=(int)$money; In PHP7: $money=100 In PHP8: $money=0;In PHP8 we should use $money=intval($money)Read More →
Sample data: 2024-06-04 12:22:44.140-04:00 DEBUG c.m.a.a.i.exporter.AgentSpanExporter – exporting span: SpanData{spanContext=ImmutableSpanContext{traceId=7315e28acf0b7ac821a6c135368c48ac, spanId=341e43ed1acc9776, traceFlags=01, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=true}, parentSpanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, resource=Resource{schemaUrl=null, attributes={service.name=”unknown_service:java”, telemetry.sdk.language=”java”, telemetry.sdk.name=”opentelemetry”, telemetry.sdk.version=”1.37.0″}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.tomcat-7.0, version=2.3.0-alpha, schemaUrl=null, attributes={}}, name=GET /**, kind=SERVER, startEpochNanos=1717518164122000000, endEpochNanos=1717518164126927840, attributes=AttributesMap{data={server.port=8080, applicationinsights.internal.item_count=1, user_agent.original=curl/7.29.0, http.response.status_code=404, network.protocol.version=1.1, thread.id=39, applicationinsights.internal.is_pre_aggregated=true, url.scheme=http, thread.name=http-nio-8080-exec-1, url.path=/suck, network.peer.port=53590, network.peer.address=1.1.1.1, server.address=servername, client.address=1.1.1.1, http.route=/**, http.request.method=GET}, capacity=128, totalAddedValues=16}, totalAttributeCount=16, events=[], totalRecordedEvents=0, links=[], totalRecordedLinks=0, status=ImmutableStatusData{statusCode=UNSET, description=}, hasEnded=true}Read More →
Login portal.azure.com , click on Resources Graph and run this query: resourcecontainers | where type == ‘microsoft.resources/subscriptions/resourcegroups’ | project name, id,subscriptionId,tags |project-rename rg_name=name,rg_id=id,rg_tags=tags | join kind=inner ( resourcecontainers | where type == ‘microsoft.resources/subscriptions’ | project name,subscriptionId,tenantId,tags | project-rename sub_tags=tags ) on subscriptionIdRead More →
| rest /servicesNS/-/-/saved/searches splunk_server=localRead More →
* TLSv1.3 (OUT), TLS handshake, Client hello (1):* TLSv1.3 (IN), TLS handshake, Server hello (2):* TLSv1.2 (OUT), TLS alert, handshake failure (552):* OpenSSL/3.0.11: error:0A000152:SSL routines::unsafe legacy renegotiation disabled* Closing connection 0 Fix:Read More →