Skip to content

Instantly share code, notes, and snippets.

Avatar

Velotio Technologies velotiotech

View GitHub Profile
View .c
#include <stdio.h>
int main (int argc, char *argv[]) {
int i;
int a[3] = {'0','1','2'};
char *ptr = (char *)a;
printf("Setting all a[] elements to 0\n");
for(i=0;i<3;i++) {
ptr[i] = 0;
printf(" a[%d]= %d\n",i,a[i]);
}
View .sh
 helm repo add elastic https://helm.elastic.co && helm repo update
View .sh
curl -G -s "http://localhost:3100/loki/api/v1/query"
--data-urlencode 'query={job="shruti/logging-golang"}' | jq
View .sh
# Create a namespace to deploy PLG stack :
kubectl create ns loki
# Add Grafana's Helm Chart repository and Update repo :
helm repo add grafana https://grafana.github.io/helm-charts
helm repo update
# Deploy the Loki stack :
View .sh
helm install my-splunk-connect -f values.yaml splunk/splunk-connect-for-kubernetes
View .sh
helm show values splunk/splunk-connect-for-kubernetes > values.yaml
View .sh
helm repo add splunk <https://splunk.github.io/splunk-connect-for-kubernetes/>
View .sh
curl --location -k --request GET '<https://localhost:8089/services/search/jobs/export?search=search%20index=%22event%22%20sourcetype=%22kube:container:docker-log-generator%22&output_mode=json>' -u admin:Admin123!
View .sh
helm repo add elastic [<https://helm.elastic.co>](<https://helm.elastic.co>) && helm repo update
View .sh
logcli query '{job="shruti/logging-golang"}'