Questions tagged [json]

128 questions
2
votes
1 answer

json_query help - not producing expected output

I am trying to build an array to use for with_nested, but I cannot get past why json_query isn't outputting the actual hosts assigned to each cluster: Play: - name: Index clusters.json shell: cat {{ tower_var_path }}/clusters.json register:…
BrillCom
  • 139
  • 2
  • 9
2
votes
0 answers

Lunajson not found in lua 5.2.3

I have installed lunajson with luarocks. When I attempt to use the module I keep getting the error below. I am just trying to decode a website that responds back with some json. The OS is running Debian Jessie. I know it is an older OS and I will…
user2236794
  • 139
  • 1
  • 3
2
votes
3 answers

How to retrieve the routing tables in JSON format (linux)?

The ip command is able to return some of its results in JSON format, but it seems to be unable to format the routing table(s). Here are some examples of what I mean. List of all addresses: ip --json address show [{ ... },{ "ifindex": 2, …
Alessio Periloso
  • 198
  • 2
  • 10
2
votes
1 answer

How to read docker json log files in a readable format?

I always back up docker json log files when I deploy a new image version. Is there a linux program or command that lets me browse the log output from backed-up json log files in a readable format like when you use "docker logs"? or a broader…
Mise
  • 23
  • 3
1
vote
0 answers

Convert json file to prometheus metrics

I have nginx json access log like this, a file that append sample like this to end of file. { "time": "2019-11-27T08:23:39+00:00", "msec": 1574843019.787, "ip": "91.133.248.69", "agent_name": "firefox", "agent_version": "70", "agent_os":…
1
vote
1 answer

Install gRPC php extension in elastic-beanstack

I need to install gRPC php extension elastic-beanstack. The way i found is to write a config file inside ".ebextensions" in order to automatically install the extension. For that I need to create yaml or json file. I need to add the following…
Maverick
  • 11
  • 2
1
vote
1 answer

Download |parse pem file aws secret manager

I have placed pem file as a key value on AWS Secret Manager. When I downloaded the pem file it downloaded as following format. -----BEGIN RSA PRIVATE KEY-----EncryptedText==-----END RSA PRIVATE KEY ----- How can I convert this to correct pem file…
Vikash
  • 141
  • 4
1
vote
1 answer

Ansible stdout from item collected with loop

Im trying to print stdout of registred items according to documentation documentation. Here is my yaml file: - name: network-check tags: stats shell: "tail -n 3 {{ ansible_facts['nodename'] }}_{{ item }}.out | awk '/Mbits/ { sum += $7; n++} END…
user3069488
  • 169
  • 2
  • 4
  • 19
1
vote
1 answer

IAM policy to enforce tagging not working

0 down vote favorite I have created an IAM policy to deny creating EBS volumes if it is not tagged with both the keys "empname" and "team". The policy is attached to a test user. When I try to create a volume with no tags defined, it throws error,…
1
vote
1 answer

Storage profile error when deploying new machine using json template

I'm trying to deploy two vm's in an avset using visual studio 2015. I get the error message below when I attempt to deploy: New-AzureRmResourceGroupDeployment : 2:03:59 AM - Resource Microsoft.Compute/virtualMachines '31' failed with message '{ …
Norrin Rad
  • 353
  • 1
  • 5
  • 14
1
vote
1 answer

Error when deploying JSON template

I'm trying to deploy two VMs in an avset using Visual Studio 2015. I get the error message below when I attempt to deploy: Reference Id 1 is not formatted correctly. The Id is expected to reference resources of type virtualNetworks/subnets. Path…
Norrin Rad
  • 353
  • 1
  • 5
  • 14
1
vote
1 answer

JSON parsing with Nagios plugin

I am looking to use Drew Kerrigan's JSON Nagios plugin on GitHub (drewkerrigan/nagios-http-json) to monitor the output from a REST API, but I am struggling to get the query syntax right. Here is a sample of the JSON that's returned when I hit the…
Linker3000
  • 668
  • 1
  • 5
  • 14
1
vote
2 answers

Powershell - Split Array Value keep first element

I'm trying to extract just the IPs from a filtered JSON using the following code: $curl = Invoke-WebRequest -Method Get -Uri "http://urltojson.com/file.json" $curl2 = $curl.Content.replace("Script", "Script_").replace("iphone",…
joebegborg07
  • 869
  • 5
  • 16
  • 24
1
vote
3 answers

Date field is being presented as integer

I have an Elastic Stack server (on Hyper-v) that is ingesting data via a logstash exec command and performing analytics on it. Everything is working great except a date field that is being displayed as a number. How do I get logstash, Elasticsearch…
Elliot Huffman
  • 1,229
  • 1
  • 12
  • 25
1
vote
0 answers

htaccess require host domain not working correctly

I have a folder full of folders with json files. I want to restrict AJAX requests to these files to certain domains. I made an htaccess file to restrict this but it isn't work. My htaccess is as follows:
abetwothree
  • 111
  • 2
1 2
3
8 9