Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tables option doesn't properly handle columns that comprise the index #42

Open
johnworkman opened this issue Mar 30, 2020 · 1 comment
Labels
bug Something isn't working plugin:input-snmp

Comments

@johnworkman
Copy link

Using this configuration in logstash:

    tables => [ {"name" => "crasSessionTable" "columns" => [
        "1.3.6.1.4.1.9.9.392.1.3.21.1.1", # crasUsername
        "1.3.6.1.4.1.9.9.392.1.3.21.1.3", # crasSessionIndex
        "1.3.6.1.4.1.9.9.392.1.3.21.1.4", # crasAuthenMethod
        "1.3.6.1.4.1.9.9.392.1.3.21.1.6", # crasSessionDuration
        "1.3.6.1.4.1.9.9.392.1.3.21.1.8", # crasLocalAddress
        "1.3.6.1.4.1.9.9.392.1.3.21.1.10", # crasISPAddress
        "1.3.6.1.4.1.9.9.392.1.3.21.1.17", # crasClientVendorString
        "1.3.6.1.4.1.9.9.392.1.3.21.1.18", # crasClientVersionString
        "1.3.6.1.4.1.9.9.392.1.3.21.1.19", # crasClientOSVendorString
        "1.3.6.1.4.1.9.9.392.1.3.21.1.20", # crasClientOSVersionString
        "1.3.6.1.4.1.9.9.392.1.3.21.1.31", # crasSessionInPkts
        "1.3.6.1.4.1.9.9.392.1.3.21.1.32", # crasSessionOutPkts
        "1.3.6.1.4.1.9.9.392.1.3.21.1.33", # crasSessionInDropPkts
        "1.3.6.1.4.1.9.9.392.1.3.21.1.34", # crasSessionOutDropPkts
        "1.3.6.1.4.1.9.9.392.1.3.21.1.35", # crasSessionInOctets
        "1.3.6.1.4.1.9.9.392.1.3.21.1.36", # crasSessionOutOctets
        "1.3.6.1.4.1.9.9.392.1.3.21.1.37" # crasSessionState
    ]}]

Produces this output:

{
  "crasSessionState": 0,
  "crasClientOSVersionString": "10.0.17763 ",
  "crasSessionOutPkts": 62849,
  "crasLocalAddress": "",
  "crasSessionInPkts": 55160,
  "index": "8.x.x.x.x.x.x.x.x.311297",
  "crasSessionInOctets": 12843833,
  "crasClientVendorString": "AnyConnect",
  "crasClientVersionString": "Cisco AnyConnect VPN Agent for Windows 4.8.02045",
  "crasClientOSVendorString": "win",
  "crasSessionOutDropPkts": 0,
  "crasAuthenMethod": 7,
  "crasISPAddress": "x.x.x.x",
  "crasSessionOutOctets": 42538743,
  "crasSessionInDropPkts": 0,
  "crasSessionDuration": 5873
},

The columns crasUsername (1.3.6.1.4.1.9.9.392.1.3.21.1.1) and crasSessionIndex (1.3.6.1.4.1.9.9.392.1.3.21.1.3) are absent from the output.

This is using CISCO-REMOTE-ACCESS-MONITOR-MIB

@inokir
Copy link

inokir commented Jun 1, 2020

similar issue:

config:

tables => [
{
name => "ifTable_v3"
columns => [
"1.3.6.1.2.1.2.2.1.1",
"1.3.6.1.2.1.2.2.1.2",
"1.3.6.1.2.1.2.2.1.10",
"1.3.6.1.2.1.2.2.1.16",
"1.3.6.1.2.1.2.2.1.11",
"1.3.6.1.2.1.2.2.1.17",
"1.3.6.1.2.1.2.2.1.12",
"1.3.6.1.2.1.2.2.1.18",
"1.3.6.1.2.1.2.2.1.13",
"1.3.6.1.2.1.2.2.1.19",
"1.3.6.1.2.1.2.2.1.14",
"1.3.6.1.2.1.2.2.1.20"
]
}
]
output:

"ifTable_v3": [
{
"ifInErrors": 0,
"index": "1",
"ifIndex": 1
},
{
"ifOutErrors": 0,
"index": "2",
"ifDescr": "ether2-master"
},
{
"ifInOctets": 1082509867,
"index": "3",
"ifInErrors": 0
},
{
"ifOutErrors": 0,
"index": "4",
"ifOutOctets": 0
},
{
"ifInErrors": 0,
"index": "5",
"ifInUcastPkts": 0
},
{
"ifOutErrors": 0,
"index": "6",
"ifOutUcastPkts": 132675414
},
{
"ifInErrors": 0,
"index": "7",
"ifInNUcastPkts": 0
},
{
"ifOutErrors": 0,
"index": "8",
"ifOutNUcastPkts": 0
},
{
"ifInErrors": 0,
"index": "11",
"ifInDiscards": 0
},
{
"ifOutErrors": 0,
"index": "12",
"ifOutDiscards": 0
}
]
},

@colinsurprenant colinsurprenant added the bug Something isn't working label Sep 2, 2020
@edmocosta edmocosta transferred this issue from logstash-plugins/logstash-input-snmp May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin:input-snmp
Projects
None yet
Development

No branches or pull requests

4 participants